C# Class System.Net.Sockets.Socket

Inheritance: IDisposable
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

public Accept ( ) : Socket
Résultat Socket

AcceptAsync() public méthode

public AcceptAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

BeginAccept() public méthode

public BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
Résultat IAsyncResult

BeginAccept() public méthode

public BeginAccept ( Socket acceptSocket, int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
acceptSocket Socket
receiveSize int
callback AsyncCallback
state object
Résultat IAsyncResult

BeginAccept() public méthode

public BeginAccept ( int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
receiveSize int
callback AsyncCallback
state object
Résultat IAsyncResult

BeginConnect() public méthode

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

BeginConnect() public méthode

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

BeginConnect() public méthode

public BeginConnect ( string host, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
host string
port int
requestCallback AsyncCallback
state object
Résultat IAsyncResult

BeginDisconnect() public méthode

public BeginDisconnect ( bool reuseSocket, AsyncCallback callback, object state ) : IAsyncResult
reuseSocket bool
callback AsyncCallback
state object
Résultat IAsyncResult

BeginReceive() public méthode

public BeginReceive ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
callback AsyncCallback
state object
Résultat IAsyncResult

BeginReceive() public méthode

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

BeginReceive() public méthode

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
Résultat IAsyncResult

BeginReceive() public méthode

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
Résultat IAsyncResult

BeginReceiveFrom() public méthode

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
Résultat IAsyncResult

BeginReceiveMessageFrom() public méthode

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
Résultat IAsyncResult

BeginSend() public méthode

public BeginSend ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
callback AsyncCallback
state object
Résultat IAsyncResult

BeginSend() public méthode

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

BeginSend() public méthode

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
Résultat IAsyncResult

BeginSend() public méthode

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
Résultat IAsyncResult

BeginSendTo() public méthode

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
Résultat IAsyncResult

Bind() public méthode

public Bind ( EndPoint localEP ) : void
localEP System.Net.EndPoint
Résultat void

CancelConnectAsync() public static méthode

public static CancelConnectAsync ( SocketAsyncEventArgs e ) : void
e SocketAsyncEventArgs
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

Close() public méthode

public Close ( int timeout ) : void
timeout int
Résultat void

Connect() public méthode

public Connect ( EndPoint remoteEP ) : void
remoteEP System.Net.EndPoint
Résultat void

Connect() public méthode

public Connect ( IPAddress address, int port ) : void
address System.Net.IPAddress
port int
Résultat void

Connect() public méthode

public Connect ( string host, int port ) : void
host string
port int
Résultat void

ConnectAsync() public méthode

public ConnectAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

ConnectAsync() public static méthode

public static ConnectAsync ( SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e ) : bool
socketType SocketType
protocolType ProtocolType
e SocketAsyncEventArgs
Résultat bool

Disconnect() public méthode

public Disconnect ( bool reuseSocket ) : void
reuseSocket bool
Résultat void

DisconnectAsync() public méthode

public DisconnectAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

DuplicateAndClose() public méthode

public DuplicateAndClose ( int targetProcessId ) : SocketInformation
targetProcessId int
Résultat SocketInformation

EndAccept() public méthode

public EndAccept ( IAsyncResult asyncResult ) : Socket
asyncResult IAsyncResult
Résultat Socket

EndConnect() public méthode

public EndConnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

EndDisconnect() public méthode

public EndDisconnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

EndReceive() public méthode

public EndReceive ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndReceive() public méthode

public EndReceive ( IAsyncResult asyncResult, SocketError &errorCode ) : int
asyncResult IAsyncResult
errorCode SocketError
Résultat int

EndReceiveFrom() public méthode

public EndReceiveFrom ( IAsyncResult asyncResult, EndPoint &endPoint ) : int
asyncResult IAsyncResult
endPoint System.Net.EndPoint
Résultat int

EndReceiveMessageFrom() public méthode

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

EndSend() public méthode

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndSend() public méthode

public EndSend ( IAsyncResult asyncResult, SocketError &errorCode ) : int
asyncResult IAsyncResult
errorCode SocketError
Résultat int

EndSendTo() public méthode

public EndSendTo ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

GetSocketOption() public méthode

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength ) : byte[]
optionLevel SocketOptionLevel
optionName SocketOptionName
optionLength int
Résultat byte[]

GetSocketOption() public méthode

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName ) : object
optionLevel SocketOptionLevel
optionName SocketOptionName
Résultat object

GetSocketOption() public méthode

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
Résultat void

IOControl() public méthode

public IOControl ( IOControlCode ioControlCode, byte optionInValue, byte optionOutValue ) : int
ioControlCode IOControlCode
optionInValue byte
optionOutValue byte
Résultat int

IOControl() public méthode

public IOControl ( int ioControlCode, byte optionInValue, byte optionOutValue ) : int
ioControlCode int
optionInValue byte
optionOutValue byte
Résultat int

Listen() public méthode

public Listen ( int backlog ) : void
backlog int
Résultat void

Poll() public méthode

public Poll ( int microSeconds, SelectMode mode ) : bool
microSeconds int
mode SelectMode
Résultat bool

Receive() public méthode

public Receive ( IList buffers ) : int
buffers IList
Résultat int

Receive() public méthode

public Receive ( IList buffers, SocketFlags socketFlags ) : int
buffers IList
socketFlags SocketFlags
Résultat int

Receive() public méthode

public Receive ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
Résultat int

Receive() public méthode

public Receive ( byte buffer ) : int
buffer byte
Résultat int

Receive() public méthode

public Receive ( byte buffer, SocketFlags socketFlags ) : int
buffer byte
socketFlags SocketFlags
Résultat int

Receive() public méthode

public Receive ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
Résultat int

Receive() public méthode

public Receive ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
Résultat int

Receive() public méthode

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

ReceiveAsync() public méthode

public ReceiveAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

ReceiveFrom() public méthode

public ReceiveFrom ( byte buffer, EndPoint &remoteEP ) : int
buffer byte
remoteEP EndPoint
Résultat int

ReceiveFrom() public méthode

public ReceiveFrom ( byte buffer, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
socketFlags SocketFlags
remoteEP EndPoint
Résultat int

ReceiveFrom() public méthode

public ReceiveFrom ( byte buffer, int size, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
size int
socketFlags SocketFlags
remoteEP EndPoint
Résultat int

ReceiveFrom() public méthode

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

ReceiveFromAsync() public méthode

public ReceiveFromAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

ReceiveMessageFrom() public méthode

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
Résultat int

ReceiveMessageFromAsync() public méthode

public ReceiveMessageFromAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

Select() public static méthode

public static Select ( IList checkRead, IList checkWrite, IList checkError, int microSeconds ) : void
checkRead IList
checkWrite IList
checkError IList
microSeconds int
Résultat void

Send() public méthode

public Send ( IList buffers ) : int
buffers IList
Résultat int

Send() public méthode

public Send ( IList buffers, SocketFlags socketFlags ) : int
buffers IList
socketFlags SocketFlags
Résultat int

Send() public méthode

public Send ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
Résultat int

Send() public méthode

public Send ( byte buffer ) : int
buffer byte
Résultat int

Send() public méthode

public Send ( byte buffer, SocketFlags socketFlags ) : int
buffer byte
socketFlags SocketFlags
Résultat int

Send() public méthode

public Send ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
Résultat int

Send() public méthode

public Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
Résultat int

Send() public méthode

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

SendAsync() public méthode

public SendAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

SendPacketsAsync() public méthode

public SendPacketsAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

SendTo() public méthode

public SendTo ( byte buffer, EndPoint remoteEP ) : int
buffer byte
remoteEP EndPoint
Résultat int

SendTo() public méthode

public SendTo ( byte buffer, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
socketFlags SocketFlags
remoteEP EndPoint
Résultat int

SendTo() public méthode

public SendTo ( byte buffer, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
size int
socketFlags SocketFlags
remoteEP EndPoint
Résultat int

SendTo() public méthode

public SendTo ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP EndPoint
Résultat int

SendToAsync() public méthode

public SendToAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Résultat bool

SetIPProtectionLevel() public méthode

public SetIPProtectionLevel ( IPProtectionLevel level ) : void
level IPProtectionLevel
Résultat void

SetSocketOption() public méthode

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue bool
Résultat void

SetSocketOption() public méthode

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
Résultat void

SetSocketOption() public méthode

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue int
Résultat void

SetSocketOption() public méthode

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue object
Résultat void

Shutdown() public méthode

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
Résultat void

Socket() public méthode

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

Socket() public méthode

public Socket ( SocketInformation socketInformation ) : System.Collections.Generic
socketInformation SocketInformation
Résultat System.Collections.Generic

Socket() public méthode

public Socket ( SocketType socketType, ProtocolType protocolType ) : System.Collections.Generic
socketType SocketType
protocolType ProtocolType
Résultat System.Collections.Generic