C# Class System.Net.Sockets.Socket

Inheritance: IDisposable
Mostra file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
BeginConnectEx IAsyncResult
CallSerializeCheckDnsEndPoint System.Net.Internals.SocketAddress
CanTryAddressFamily bool
CanUseConnectEx bool
CheckCacheRemote System.Net.Internals.SocketAddress
CheckSetOptionPermissions void
CreateAcceptSocket Socket
DebugMembers void
DnsCallback void
DoBeginAccept void
DoBeginDisconnect void
DoBeginReceive SocketError
DoBeginReceive SocketError
DoBeginReceiveFrom void
DoBeginSend SocketError
DoBeginSend SocketError
DoBeginSendTo void
DoBind void
DoConnect void
DoDnsCallback bool
DoMultipleAddressConnectCallback bool
EndAccept Socket
EndAccept Socket
GetIPProtocolInformation void
GetIPv6MulticastOpt IPv6MulticastOption
GetLingerOpt LingerOption
GetMulticastOpt MulticastOption
InitializeSockets void
InternalBind void
InternalConnect void
InternalSetBlocking SocketError
InternalSetBlocking void
InternalShutdown void
MultipleAddressConnectCallback void
PostOneBeginConnect object
RemapIPEndPoint IPEndPoint
SetIPv6MulticastOption void
SetLingerOption void
SetMulticastOption void
SetReceivingPacketInformation void
SetSocketOption void
SetToConnected void
SetToDisconnected void
SnapshotAndSerialize Internals.SocketAddress
Socket System.Collections.Generic
ThrowIfNotSupportsMultipleConnectAttempts void
UnsafeBeginConnect IAsyncResult
UnsafeBeginReceive IAsyncResult
UnsafeBeginSend IAsyncResult
UpdateAcceptSocket Socket
UpdateStatusAfterSocketError void
UpdateStatusAfterSocketError void
ValidateBlockingMode void

Public Methods

Method Description
Accept ( ) : Socket
AcceptAsync ( SocketAsyncEventArgs e ) : bool
BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult
BeginAccept ( Socket acceptSocket, int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
BeginAccept ( int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
BeginConnect ( EndPoint remoteEP, AsyncCallback callback, object state ) : IAsyncResult
BeginConnect ( IPAddress address, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginConnect ( string host, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
BeginDisconnect ( bool reuseSocket, AsyncCallback callback, object state ) : IAsyncResult
BeginReceive ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
BeginReceive ( IList buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
BeginReceiveFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint &remoteEP, AsyncCallback callback, object state ) : IAsyncResult
BeginReceiveMessageFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint &remoteEP, AsyncCallback callback, object state ) : IAsyncResult
BeginSend ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
BeginSend ( IList buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
BeginSendTo ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, object state ) : IAsyncResult
Bind ( EndPoint localEP ) : void
CancelConnectAsync ( SocketAsyncEventArgs e ) : void
Close ( ) : void
Close ( int timeout ) : void
Connect ( EndPoint remoteEP ) : void
Connect ( IPAddress address, int port ) : void
Connect ( string host, int port ) : void
ConnectAsync ( SocketAsyncEventArgs e ) : bool
ConnectAsync ( SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e ) : bool
Disconnect ( bool reuseSocket ) : void
DisconnectAsync ( SocketAsyncEventArgs e ) : bool
Dispose ( ) : void
DuplicateAndClose ( int targetProcessId ) : SocketInformation
EndAccept ( IAsyncResult asyncResult ) : Socket
EndConnect ( IAsyncResult asyncResult ) : void
EndDisconnect ( IAsyncResult asyncResult ) : void
EndReceive ( IAsyncResult asyncResult ) : int
EndReceive ( IAsyncResult asyncResult, SocketError &errorCode ) : int
EndReceiveFrom ( IAsyncResult asyncResult, EndPoint &endPoint ) : int
EndReceiveMessageFrom ( IAsyncResult asyncResult, SocketFlags &socketFlags, EndPoint &endPoint, IPPacketInformation &ipPacketInformation ) : int
EndSend ( IAsyncResult asyncResult ) : int
EndSend ( IAsyncResult asyncResult, SocketError &errorCode ) : int
EndSendTo ( IAsyncResult asyncResult ) : int
GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength ) : byte[]
GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName ) : object
GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
IOControl ( IOControlCode ioControlCode, byte optionInValue, byte optionOutValue ) : int
IOControl ( int ioControlCode, byte optionInValue, byte optionOutValue ) : int
Listen ( int backlog ) : void
Poll ( int microSeconds, SelectMode mode ) : bool
Receive ( IList buffers ) : int
Receive ( IList buffers, SocketFlags socketFlags ) : int
Receive ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
Receive ( byte buffer ) : int
Receive ( byte buffer, SocketFlags socketFlags ) : int
Receive ( byte buffer, int size, SocketFlags socketFlags ) : int
Receive ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
Receive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
ReceiveAsync ( SocketAsyncEventArgs e ) : bool
ReceiveFrom ( byte buffer, EndPoint &remoteEP ) : int
ReceiveFrom ( byte buffer, SocketFlags socketFlags, EndPoint &remoteEP ) : int
ReceiveFrom ( byte buffer, int size, SocketFlags socketFlags, EndPoint &remoteEP ) : int
ReceiveFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint &remoteEP ) : int
ReceiveFromAsync ( SocketAsyncEventArgs e ) : bool
ReceiveMessageFrom ( byte buffer, int offset, int size, SocketFlags &socketFlags, EndPoint &remoteEP, IPPacketInformation &ipPacketInformation ) : int
ReceiveMessageFromAsync ( SocketAsyncEventArgs e ) : bool
Select ( IList checkRead, IList checkWrite, IList checkError, int microSeconds ) : void
Send ( IList buffers ) : int
Send ( IList buffers, SocketFlags socketFlags ) : int
Send ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
Send ( byte buffer ) : int
Send ( byte buffer, SocketFlags socketFlags ) : int
Send ( byte buffer, int size, SocketFlags socketFlags ) : int
Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
Send ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
SendAsync ( SocketAsyncEventArgs e ) : bool
SendPacketsAsync ( SocketAsyncEventArgs e ) : bool
SendTo ( byte buffer, EndPoint remoteEP ) : int
SendTo ( byte buffer, SocketFlags socketFlags, EndPoint remoteEP ) : int
SendTo ( byte buffer, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
SendTo ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
SendToAsync ( SocketAsyncEventArgs e ) : bool
SetIPProtectionLevel ( IPProtectionLevel level ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue ) : void
Shutdown ( SocketShutdown how ) : void
Socket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System.Collections.Generic
Socket ( SocketInformation socketInformation ) : System.Collections.Generic
Socket ( SocketType socketType, ProtocolType protocolType ) : System.Collections.Generic

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
BeginConnectEx ( EndPoint remoteEP, bool flowContext, AsyncCallback callback, object state ) : IAsyncResult
CallSerializeCheckDnsEndPoint ( EndPoint remoteEP ) : SocketAddress
CanTryAddressFamily ( AddressFamily family ) : bool
CanUseConnectEx ( EndPoint remoteEP ) : bool
CheckCacheRemote ( EndPoint &remoteEP, bool isOverwrite ) : SocketAddress
CheckSetOptionPermissions ( SocketOptionLevel optionLevel, SocketOptionName optionName ) : void
CreateAcceptSocket ( SafeCloseSocket fd, EndPoint remoteEP ) : Socket
DebugMembers ( ) : void
DnsCallback ( IAsyncResult result ) : void
DoBeginAccept ( Socket acceptSocket, int receiveSize, AcceptOverlappedAsyncResult asyncResult ) : void
DoBeginDisconnect ( bool reuseSocket, DisconnectOverlappedAsyncResult asyncResult ) : void
DoBeginReceive ( IList buffers, SocketFlags socketFlags, OverlappedAsyncResult asyncResult ) : SocketError
DoBeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, OverlappedAsyncResult asyncResult ) : SocketError
DoBeginReceiveFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint endPointSnapshot, Internals socketAddress, OriginalAddressOverlappedAsyncResult asyncResult ) : void
DoBeginSend ( IList buffers, SocketFlags socketFlags, OverlappedAsyncResult asyncResult ) : SocketError
DoBeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, OverlappedAsyncResult asyncResult ) : SocketError
DoBeginSendTo ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint endPointSnapshot, Internals socketAddress, OverlappedAsyncResult asyncResult ) : void
DoBind ( EndPoint endPointSnapshot, Internals socketAddress ) : void
DoConnect ( EndPoint endPointSnapshot, Internals socketAddress ) : void
DoDnsCallback ( IAsyncResult result, MultipleAddressConnectAsyncResult context ) : bool
DoMultipleAddressConnectCallback ( object result, MultipleAddressConnectAsyncResult context ) : bool
EndAccept ( byte &buffer, IAsyncResult asyncResult ) : Socket
EndAccept ( byte &buffer, int &bytesTransferred, IAsyncResult asyncResult ) : Socket
GetIPProtocolInformation ( AddressFamily addressFamily, Internals socketAddress, bool &isIPv4, bool &isIPv6 ) : void
GetIPv6MulticastOpt ( SocketOptionName optionName ) : IPv6MulticastOption
GetLingerOpt ( ) : LingerOption
GetMulticastOpt ( SocketOptionName optionName ) : MulticastOption
InitializeSockets ( ) : void
InternalBind ( EndPoint localEP ) : void
InternalConnect ( EndPoint remoteEP ) : void
InternalSetBlocking ( bool desired, bool &current ) : SocketError
InternalSetBlocking ( bool desired ) : void
InternalShutdown ( SocketShutdown how ) : void
MultipleAddressConnectCallback ( IAsyncResult result ) : void
PostOneBeginConnect ( MultipleAddressConnectAsyncResult context ) : object
RemapIPEndPoint ( IPEndPoint input ) : IPEndPoint
SetIPv6MulticastOption ( SocketOptionName optionName, IPv6MulticastOption MR ) : void
SetLingerOption ( LingerOption lref ) : void
SetMulticastOption ( SocketOptionName optionName, MulticastOption MR ) : void
SetReceivingPacketInformation ( ) : void
SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue, bool silent ) : void
SetToConnected ( ) : void
SetToDisconnected ( ) : void
SnapshotAndSerialize ( EndPoint &remoteEP ) : Internals.SocketAddress
Socket ( SafeCloseSocket fd ) : System.Collections.Generic
ThrowIfNotSupportsMultipleConnectAttempts ( ) : void
UnsafeBeginConnect ( EndPoint remoteEP, AsyncCallback callback, object state, bool flowContext = false ) : IAsyncResult
UnsafeBeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
UnsafeBeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
UpdateAcceptSocket ( Socket socket, EndPoint remoteEP ) : Socket
UpdateStatusAfterSocketError ( SocketError errorCode ) : void
UpdateStatusAfterSocketError ( SocketException socketException ) : void
ValidateBlockingMode ( ) : void

Method Details

Accept() public method

public Accept ( ) : Socket
return Socket

AcceptAsync() public method

public AcceptAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

BeginAccept() public method

public BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
return IAsyncResult

BeginAccept() public method

public BeginAccept ( Socket acceptSocket, int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
acceptSocket Socket
receiveSize int
callback AsyncCallback
state object
return IAsyncResult

BeginAccept() public method

public BeginAccept ( int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
receiveSize int
callback AsyncCallback
state object
return IAsyncResult

BeginConnect() public method

public BeginConnect ( EndPoint remoteEP, AsyncCallback callback, object state ) : IAsyncResult
remoteEP System.Net.EndPoint
callback AsyncCallback
state object
return IAsyncResult

BeginConnect() public method

public BeginConnect ( IPAddress address, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
address System.Net.IPAddress
port int
requestCallback AsyncCallback
state object
return IAsyncResult

BeginConnect() public method

public BeginConnect ( string host, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
host string
port int
requestCallback AsyncCallback
state object
return IAsyncResult

BeginDisconnect() public method

public BeginDisconnect ( bool reuseSocket, AsyncCallback callback, object state ) : IAsyncResult
reuseSocket bool
callback AsyncCallback
state object
return IAsyncResult

BeginReceive() public method

public BeginReceive ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
callback AsyncCallback
state object
return IAsyncResult

BeginReceive() public method

public BeginReceive ( IList buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state object
return IAsyncResult

BeginReceive() public method

public BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
socketFlags SocketFlags
callback AsyncCallback
state object
return IAsyncResult

BeginReceive() public method

public BeginReceive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state object
return IAsyncResult

BeginReceiveFrom() public method

public BeginReceiveFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint &remoteEP, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP System.Net.EndPoint
callback AsyncCallback
state object
return IAsyncResult

BeginReceiveMessageFrom() public method

public BeginReceiveMessageFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint &remoteEP, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP System.Net.EndPoint
callback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
callback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( IList buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
socketFlags SocketFlags
callback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state object
return IAsyncResult

BeginSendTo() public method

public BeginSendTo ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP System.Net.EndPoint
callback AsyncCallback
state object
return IAsyncResult

Bind() public method

public Bind ( EndPoint localEP ) : void
localEP System.Net.EndPoint
return void

CancelConnectAsync() public static method

public static CancelConnectAsync ( SocketAsyncEventArgs e ) : void
e SocketAsyncEventArgs
return void

Close() public method

public Close ( ) : void
return void

Close() public method

public Close ( int timeout ) : void
timeout int
return void

Connect() public method

public Connect ( EndPoint remoteEP ) : void
remoteEP System.Net.EndPoint
return void

Connect() public method

public Connect ( IPAddress address, int port ) : void
address System.Net.IPAddress
port int
return void

Connect() public method

public Connect ( string host, int port ) : void
host string
port int
return void

ConnectAsync() public method

public ConnectAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

ConnectAsync() public static method

public static ConnectAsync ( SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e ) : bool
socketType SocketType
protocolType ProtocolType
e SocketAsyncEventArgs
return bool

Disconnect() public method

public Disconnect ( bool reuseSocket ) : void
reuseSocket bool
return void

DisconnectAsync() public method

public DisconnectAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DuplicateAndClose() public method

public DuplicateAndClose ( int targetProcessId ) : SocketInformation
targetProcessId int
return SocketInformation

EndAccept() public method

public EndAccept ( IAsyncResult asyncResult ) : Socket
asyncResult IAsyncResult
return Socket

EndConnect() public method

public EndConnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

EndDisconnect() public method

public EndDisconnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

EndReceive() public method

public EndReceive ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndReceive() public method

public EndReceive ( IAsyncResult asyncResult, SocketError &errorCode ) : int
asyncResult IAsyncResult
errorCode SocketError
return int

EndReceiveFrom() public method

public EndReceiveFrom ( IAsyncResult asyncResult, EndPoint &endPoint ) : int
asyncResult IAsyncResult
endPoint System.Net.EndPoint
return int

EndReceiveMessageFrom() public method

public EndReceiveMessageFrom ( IAsyncResult asyncResult, SocketFlags &socketFlags, EndPoint &endPoint, IPPacketInformation &ipPacketInformation ) : int
asyncResult IAsyncResult
socketFlags SocketFlags
endPoint System.Net.EndPoint
ipPacketInformation IPPacketInformation
return int

EndSend() public method

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndSend() public method

public EndSend ( IAsyncResult asyncResult, SocketError &errorCode ) : int
asyncResult IAsyncResult
errorCode SocketError
return int

EndSendTo() public method

public EndSendTo ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

GetSocketOption() public method

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength ) : byte[]
optionLevel SocketOptionLevel
optionName SocketOptionName
optionLength int
return byte[]

GetSocketOption() public method

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName ) : object
optionLevel SocketOptionLevel
optionName SocketOptionName
return object

GetSocketOption() public method

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
return void

IOControl() public method

public IOControl ( IOControlCode ioControlCode, byte optionInValue, byte optionOutValue ) : int
ioControlCode IOControlCode
optionInValue byte
optionOutValue byte
return int

IOControl() public method

public IOControl ( int ioControlCode, byte optionInValue, byte optionOutValue ) : int
ioControlCode int
optionInValue byte
optionOutValue byte
return int

Listen() public method

public Listen ( int backlog ) : void
backlog int
return void

Poll() public method

public Poll ( int microSeconds, SelectMode mode ) : bool
microSeconds int
mode SelectMode
return bool

Receive() public method

public Receive ( IList buffers ) : int
buffers IList
return int

Receive() public method

public Receive ( IList buffers, SocketFlags socketFlags ) : int
buffers IList
socketFlags SocketFlags
return int

Receive() public method

public Receive ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
return int

Receive() public method

public Receive ( byte buffer ) : int
buffer byte
return int

Receive() public method

public Receive ( byte buffer, SocketFlags socketFlags ) : int
buffer byte
socketFlags SocketFlags
return int

Receive() public method

public Receive ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
return int

Receive() public method

public Receive ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
return int

Receive() public method

public Receive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
errorCode SocketError
return int

ReceiveAsync() public method

public ReceiveAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

ReceiveFrom() public method

public ReceiveFrom ( byte buffer, EndPoint &remoteEP ) : int
buffer byte
remoteEP EndPoint
return int

ReceiveFrom() public method

public ReceiveFrom ( byte buffer, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
socketFlags SocketFlags
remoteEP EndPoint
return int

ReceiveFrom() public method

public ReceiveFrom ( byte buffer, int size, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
size int
socketFlags SocketFlags
remoteEP EndPoint
return int

ReceiveFrom() public method

public ReceiveFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP EndPoint
return int

ReceiveFromAsync() public method

public ReceiveFromAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

ReceiveMessageFrom() public method

public ReceiveMessageFrom ( byte buffer, int offset, int size, SocketFlags &socketFlags, EndPoint &remoteEP, IPPacketInformation &ipPacketInformation ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP EndPoint
ipPacketInformation IPPacketInformation
return int

ReceiveMessageFromAsync() public method

public ReceiveMessageFromAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

Select() public static method

public static Select ( IList checkRead, IList checkWrite, IList checkError, int microSeconds ) : void
checkRead IList
checkWrite IList
checkError IList
microSeconds int
return void

Send() public method

public Send ( IList buffers ) : int
buffers IList
return int

Send() public method

public Send ( IList buffers, SocketFlags socketFlags ) : int
buffers IList
socketFlags SocketFlags
return int

Send() public method

public Send ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
return int

Send() public method

public Send ( byte buffer ) : int
buffer byte
return int

Send() public method

public Send ( byte buffer, SocketFlags socketFlags ) : int
buffer byte
socketFlags SocketFlags
return int

Send() public method

public Send ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
return int

Send() public method

public Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
return int

Send() public method

public Send ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
errorCode SocketError
return int

SendAsync() public method

public SendAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

SendPacketsAsync() public method

public SendPacketsAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

SendTo() public method

public SendTo ( byte buffer, EndPoint remoteEP ) : int
buffer byte
remoteEP EndPoint
return int

SendTo() public method

public SendTo ( byte buffer, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
socketFlags SocketFlags
remoteEP EndPoint
return int

SendTo() public method

public SendTo ( byte buffer, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
size int
socketFlags SocketFlags
remoteEP EndPoint
return int

SendTo() public method

public SendTo ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP EndPoint
return int

SendToAsync() public method

public SendToAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
return bool

SetIPProtectionLevel() public method

public SetIPProtectionLevel ( IPProtectionLevel level ) : void
level IPProtectionLevel
return void

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue bool
return void

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
return void

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue int
return void

SetSocketOption() public method

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue object
return void

Shutdown() public method

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
return void

Socket() public method

public Socket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System.Collections.Generic
addressFamily AddressFamily
socketType SocketType
protocolType ProtocolType
return System.Collections.Generic

Socket() public method

public Socket ( SocketInformation socketInformation ) : System.Collections.Generic
socketInformation SocketInformation
return System.Collections.Generic

Socket() public method

public Socket ( SocketType socketType, ProtocolType protocolType ) : System.Collections.Generic
socketType SocketType
protocolType ProtocolType
return System.Collections.Generic