Socket (class)

This type is found in the namespace System.Net.Sockets

mget_SupportsIPv4Boolean
mget_OSSupportsIPv4Boolean
mget_SupportsIPv6Boolean
mget_OSSupportsIPv6Boolean
mget_HandleIntPtr
mget_BlockingBoolean
mget_UseOnlyOverlappedIOBoolean
mset_UseOnlyOverlappedIOVoid
mget_ConnectedBoolean
mget_AddressFamilyAddressFamily
mget_SocketTypeSocketType
mget_ProtocolTypeProtocolType
mget_IsBoundBoolean
mget_ExclusiveAddressUseBoolean
mset_ExclusiveAddressUseVoid
mget_ReceiveBufferSizeInt32
mset_ReceiveBufferSizeVoid
mget_SendBufferSizeInt32
mset_SendBufferSizeVoid
mget_ReceiveTimeoutInt32
mset_ReceiveTimeoutVoid
mget_SendTimeoutInt32
mset_SendTimeoutVoid
mget_LingerStateLingerOption
mset_LingerStateVoid
mget_NoDelayBoolean
mset_NoDelayVoid
mget_TtlInt16
mset_TtlVoid
mget_DontFragmentBoolean
mset_DontFragmentVoid
mget_MulticastLoopbackBoolean
mset_MulticastLoopbackVoid
mget_EnableBroadcastBoolean
mset_EnableBroadcastVoid
mget_DualModeBoolean
mset_DualModeVoid
mConnectVoid
mCloseVoid
mSendInt32
mSendInt32
mSendInt32
mSendInt32
mSendInt32
mSendFileVoid
mSendInt32
mSendToInt32
mSendToInt32
mSendToInt32
mReceiveInt32
mReceiveInt32
mReceiveInt32
mReceiveInt32
mReceiveInt32
mReceiveInt32
mReceiveFromInt32
mReceiveFromInt32
mReceiveFromInt32
mIOControlInt32
mSetIPProtectionLevelVoid
mSetSocketOptionVoid
mSetSocketOptionVoid
mBeginSendFileIAsyncResult
mBeginDisconnectIAsyncResult
mBeginSendIAsyncResult
mBeginSendFileIAsyncResult
mBeginSendIAsyncResult
mEndSendInt32
mBeginReceiveIAsyncResult
mBeginReceiveIAsyncResult
mEndReceiveInt32
mBeginAcceptIAsyncResult
mDisposeVoid
mCancelConnectAsyncVoid
mget_AvailableInt32
mget_LocalEndPointEndPoint
mget_RemoteEndPointEndPoint
mset_BlockingVoid
mConnectVoid
mConnectVoid
mConnectVoid
mSendInt32
mSendFileVoid
mSendToInt32
mReceiveInt32
mReceiveMessageFromInt32
mReceiveFromInt32
mIOControlInt32
mSetSocketOptionVoid
mSetSocketOptionVoid
mGetSocketOptionObject
mGetSocketOptionVoid
mGetSocketOptionByte[]
mSelectVoid
mBeginConnectIAsyncResult
mDuplicateAndCloseSocketInformation
mBeginConnectIAsyncResult
mBeginConnectIAsyncResult
mBeginConnectIAsyncResult
mDisconnectVoid
mEndDisconnectVoid
mBeginSendIAsyncResult
mEndSendFileVoid
mBeginSendToIAsyncResult
mEndSendToInt32
mBeginReceiveIAsyncResult
mBeginReceiveMessageFromIAsyncResult
mEndReceiveMessageFromInt32
mBeginReceiveFromIAsyncResult
mEndReceiveFromInt32
mBeginAcceptIAsyncResult
mBeginAcceptIAsyncResult
mEndAcceptSocket
mEndAcceptSocket
mEndAcceptSocket
mShutdownVoid
mAcceptAsyncBoolean
mConnectAsyncBoolean
mConnectAsyncBoolean
mDisconnectAsyncBoolean
mReceiveAsyncBoolean
mReceiveFromAsyncBoolean
mReceiveMessageFromAsyncBoolean
mSendAsyncBoolean
mSendPacketsAsyncBoolean
mSendToAsyncBoolean
mBindVoid
mCloseVoid
mListenVoid
mAcceptSocket
mSendInt32
mReceiveInt32
mPollBoolean
mEndConnectVoid
mBeginSendIAsyncResult
mEndSendInt32
mBeginReceiveIAsyncResult
mEndReceiveInt32
mEqualsBoolean
mGetHashCodeInt32
mGetTypeType
mToStringString
c.ctor
c.ctor
c.ctor
pSupportsIPv4Boolean
pOSSupportsIPv4Boolean
pSupportsIPv6Boolean
pOSSupportsIPv6Boolean
pAvailableInt32
pLocalEndPointEndPoint
pRemoteEndPointEndPoint
pHandleIntPtr
pBlockingBoolean
pUseOnlyOverlappedIOBoolean
pConnectedBoolean
pAddressFamilyAddressFamily
pSocketTypeSocketType
pProtocolTypeProtocolType
pIsBoundBoolean
pExclusiveAddressUseBoolean
pReceiveBufferSizeInt32
pSendBufferSizeInt32
pReceiveTimeoutInt32
pSendTimeoutInt32
pLingerStateLingerOption
pNoDelayBoolean
pTtlInt16
pDontFragmentBoolean
pMulticastLoopbackBoolean
pEnableBroadcastBoolean
pDualModeBoolean

get_SupportsIPv4

get_OSSupportsIPv4

.

get_SupportsIPv6

.

get_OSSupportsIPv6

.

get_Handle

.

get_Blocking

.

get_UseOnlyOverlappedIO

.

set_UseOnlyOverlappedIO

.

get_Connected

valueSystem.Boolean

get_AddressFamily

.

get_SocketType

.

get_ProtocolType

.

get_IsBound

.

get_ExclusiveAddressUse

.

set_ExclusiveAddressUse

.

get_ReceiveBufferSize

valueSystem.Boolean

set_ReceiveBufferSize

.

get_SendBufferSize

valueSystem.Int32

set_SendBufferSize

.

get_ReceiveTimeout

valueSystem.Int32

set_ReceiveTimeout

.

get_SendTimeout

valueSystem.Int32

set_SendTimeout

.

get_LingerState

valueSystem.Int32

set_LingerState

.

get_NoDelay

valueSystem.Net.Sockets.LingerOption

set_NoDelay

.

get_Ttl

valueSystem.Boolean

set_Ttl

.

get_DontFragment

valueSystem.Int16

set_DontFragment

.

get_MulticastLoopback

valueSystem.Boolean

set_MulticastLoopback

.

get_EnableBroadcast

valueSystem.Boolean

set_EnableBroadcast

.

get_DualMode

valueSystem.Boolean

set_DualMode

.

Connect

valueSystem.Boolean

Close

remoteEPSystem.Net.EndPoint

Send

timeoutSystem.Int32

Send

bufferSystem.Byte[]
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags

Send

bufferSystem.Byte[]
socketFlagsSystem.Net.Sockets.SocketFlags

Send

bufferSystem.Byte[]

Send

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

SendFile

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags

Send

fileNameSystem.String

SendTo

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags

SendTo

bufferSystem.Byte[]
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint

SendTo

bufferSystem.Byte[]
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint

Receive

bufferSystem.Byte[]
remoteEPSystem.Net.EndPoint

Receive

bufferSystem.Byte[]
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags

Receive

bufferSystem.Byte[]
socketFlagsSystem.Net.Sockets.SocketFlags

Receive

bufferSystem.Byte[]

Receive

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags

Receive

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

ReceiveFrom

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags

ReceiveFrom

bufferSystem.Byte[]
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint&

ReceiveFrom

bufferSystem.Byte[]
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint&

IOControl

bufferSystem.Byte[]
remoteEPSystem.Net.EndPoint&

SetIPProtectionLevel

ioControlCodeSystem.Net.Sockets.IOControlCode
optionInValueSystem.Byte[]
optionOutValueSystem.Byte[]

SetSocketOption

levelSystem.Net.Sockets.IPProtectionLevel

SetSocketOption

optionLevelSystem.Net.Sockets.SocketOptionLevel
optionNameSystem.Net.Sockets.SocketOptionName
optionValueSystem.Int32

BeginSendFile

optionLevelSystem.Net.Sockets.SocketOptionLevel
optionNameSystem.Net.Sockets.SocketOptionName
optionValueSystem.Boolean

BeginDisconnect

fileNameSystem.String
callbackSystem.AsyncCallback
stateSystem.Object

BeginSend

reuseSocketSystem.Boolean
callbackSystem.AsyncCallback
stateSystem.Object

BeginSendFile

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
callbackSystem.AsyncCallback
stateSystem.Object

BeginSend

fileNameSystem.String
preBufferSystem.Byte[]
postBufferSystem.Byte[]
flagsSystem.Net.Sockets.TransmitFileOptions
callbackSystem.AsyncCallback
stateSystem.Object

EndSend

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags
callbackSystem.AsyncCallback
stateSystem.Object

BeginReceive

asyncResultSystem.IAsyncResult

BeginReceive

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
callbackSystem.AsyncCallback
stateSystem.Object

EndReceive

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags
callbackSystem.AsyncCallback
stateSystem.Object

BeginAccept

asyncResultSystem.IAsyncResult

Dispose

receiveSizeSystem.Int32
callbackSystem.AsyncCallback
stateSystem.Object

CancelConnectAsync

.

get_Available

eSystem.Net.Sockets.SocketAsyncEventArgs

get_LocalEndPoint

.

get_RemoteEndPoint

.

set_Blocking

.

Connect

valueSystem.Boolean

Connect

addressSystem.Net.IPAddress
portSystem.Int32

Connect

hostSystem.String
portSystem.Int32

Send

addressesSystem.Net.IPAddress[]
portSystem.Int32

SendFile

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&

SendTo

fileNameSystem.String
preBufferSystem.Byte[]
postBufferSystem.Byte[]
flagsSystem.Net.Sockets.TransmitFileOptions

Receive

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint

ReceiveMessageFrom

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&

ReceiveFrom

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags&
remoteEPSystem.Net.EndPoint&
ipPacketInformationSystem.Net.Sockets.IPPacketInformation&

IOControl

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint&

SetSocketOption

ioControlCodeSystem.Int32
optionInValueSystem.Byte[]
optionOutValueSystem.Byte[]

SetSocketOption

optionLevelSystem.Net.Sockets.SocketOptionLevel
optionNameSystem.Net.Sockets.SocketOptionName
optionValueSystem.Byte[]

GetSocketOption

optionLevelSystem.Net.Sockets.SocketOptionLevel
optionNameSystem.Net.Sockets.SocketOptionName
optionValueSystem.Object

GetSocketOption

optionLevelSystem.Net.Sockets.SocketOptionLevel
optionNameSystem.Net.Sockets.SocketOptionName

GetSocketOption

optionLevelSystem.Net.Sockets.SocketOptionLevel
optionNameSystem.Net.Sockets.SocketOptionName
optionValueSystem.Byte[]

Select

optionLevelSystem.Net.Sockets.SocketOptionLevel
optionNameSystem.Net.Sockets.SocketOptionName
optionLengthSystem.Int32

BeginConnect

checkReadSystem.Collections.IList
checkWriteSystem.Collections.IList
checkErrorSystem.Collections.IList
microSecondsSystem.Int32

DuplicateAndClose

remoteEPSystem.Net.EndPoint
callbackSystem.AsyncCallback
stateSystem.Object

BeginConnect

targetProcessIdSystem.Int32

BeginConnect

hostSystem.String
portSystem.Int32
requestCallbackSystem.AsyncCallback
stateSystem.Object

BeginConnect

addressSystem.Net.IPAddress
portSystem.Int32
requestCallbackSystem.AsyncCallback
stateSystem.Object

Disconnect

addressesSystem.Net.IPAddress[]
portSystem.Int32
requestCallbackSystem.AsyncCallback
stateSystem.Object

EndDisconnect

reuseSocketSystem.Boolean

BeginSend

asyncResultSystem.IAsyncResult

EndSendFile

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&
callbackSystem.AsyncCallback
stateSystem.Object

BeginSendTo

asyncResultSystem.IAsyncResult

EndSendTo

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint
callbackSystem.AsyncCallback
stateSystem.Object

BeginReceive

asyncResultSystem.IAsyncResult

BeginReceiveMessageFrom

buffersSystem.Collections.Generic.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&
callbackSystem.AsyncCallback
stateSystem.Object

EndReceiveMessageFrom

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint&
callbackSystem.AsyncCallback
stateSystem.Object

BeginReceiveFrom

asyncResultSystem.IAsyncResult
socketFlagsSystem.Net.Sockets.SocketFlags&
endPointSystem.Net.EndPoint&
ipPacketInformationSystem.Net.Sockets.IPPacketInformation&

EndReceiveFrom

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
remoteEPSystem.Net.EndPoint&
callbackSystem.AsyncCallback
stateSystem.Object

BeginAccept

asyncResultSystem.IAsyncResult
endPointSystem.Net.EndPoint&

BeginAccept

callbackSystem.AsyncCallback
stateSystem.Object

EndAccept

acceptSocketSystem.Net.Sockets.Socket
receiveSizeSystem.Int32
callbackSystem.AsyncCallback
stateSystem.Object

EndAccept

asyncResultSystem.IAsyncResult

EndAccept

bufferSystem.Byte[]&
asyncResultSystem.IAsyncResult

Shutdown

bufferSystem.Byte[]&
bytesTransferredSystem.Int32&
asyncResultSystem.IAsyncResult

AcceptAsync

howSystem.Net.Sockets.SocketShutdown

ConnectAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

ConnectAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

DisconnectAsync

socketTypeSystem.Net.Sockets.SocketType
protocolTypeSystem.Net.Sockets.ProtocolType
eSystem.Net.Sockets.SocketAsyncEventArgs

ReceiveAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

ReceiveFromAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

ReceiveMessageFromAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

SendAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

SendPacketsAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

SendToAsync

eSystem.Net.Sockets.SocketAsyncEventArgs

Bind

eSystem.Net.Sockets.SocketAsyncEventArgs

Close

localEPSystem.Net.EndPoint

Listen

.

Accept

backlogSystem.Int32

Send

.

Receive

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&

Poll

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&

EndConnect

microSecondsSystem.Int32
modeSystem.Net.Sockets.SelectMode

BeginSend

asyncResultSystem.IAsyncResult

EndSend

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&
callbackSystem.AsyncCallback
stateSystem.Object

BeginReceive

asyncResultSystem.IAsyncResult
errorCodeSystem.Net.Sockets.SocketError&

EndReceive

bufferSystem.Byte[]
offsetSystem.Int32
sizeSystem.Int32
socketFlagsSystem.Net.Sockets.SocketFlags
errorCodeSystem.Net.Sockets.SocketError&
callbackSystem.AsyncCallback
stateSystem.Object

Equals

asyncResultSystem.IAsyncResult
errorCodeSystem.Net.Sockets.SocketError&

GetHashCode

objSystem.Object

GetType

.

ToString

.

.ctor

.

.ctor

socketTypeSystem.Net.Sockets.SocketType
protocolTypeSystem.Net.Sockets.ProtocolType

.ctor

socketInformationSystem.Net.Sockets.SocketInformation

SupportsIPv4

addressFamilySystem.Net.Sockets.AddressFamily
socketTypeSystem.Net.Sockets.SocketType
protocolTypeSystem.Net.Sockets.ProtocolType

OSSupportsIPv4

.

SupportsIPv6

.

OSSupportsIPv6

.

Available

.

LocalEndPoint

.

RemoteEndPoint

.

Handle

.

Blocking

.

UseOnlyOverlappedIO

.

Connected

.

AddressFamily

.

SocketType

.

ProtocolType

.

IsBound

.

ExclusiveAddressUse

.

ReceiveBufferSize

.

SendBufferSize

.

ReceiveTimeout

.

SendTimeout

.

LingerState

.

NoDelay

.

Ttl

.

DontFragment

.

MulticastLoopback

.

EnableBroadcast

.

DualMode

.
.