C# Класс System.Net.Sockets.Socket

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
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

Описание методов

Accept() публичный Метод

public Accept ( ) : Socket
Результат Socket

AcceptAsync() публичный Метод

public AcceptAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

BeginAccept() публичный Метод

public BeginAccept ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
Результат IAsyncResult

BeginAccept() публичный Метод

public BeginAccept ( Socket acceptSocket, int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
acceptSocket Socket
receiveSize int
callback AsyncCallback
state object
Результат IAsyncResult

BeginAccept() публичный Метод

public BeginAccept ( int receiveSize, AsyncCallback callback, object state ) : IAsyncResult
receiveSize int
callback AsyncCallback
state object
Результат IAsyncResult

BeginConnect() публичный Метод

public BeginConnect ( EndPoint remoteEP, AsyncCallback callback, object state ) : IAsyncResult
remoteEP System.Net.EndPoint
callback AsyncCallback
state object
Результат IAsyncResult

BeginConnect() публичный Метод

public BeginConnect ( IPAddress address, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
address System.Net.IPAddress
port int
requestCallback AsyncCallback
state object
Результат IAsyncResult

BeginConnect() публичный Метод

public BeginConnect ( string host, int port, AsyncCallback requestCallback, object state ) : IAsyncResult
host string
port int
requestCallback AsyncCallback
state object
Результат IAsyncResult

BeginDisconnect() публичный Метод

public BeginDisconnect ( bool reuseSocket, AsyncCallback callback, object state ) : IAsyncResult
reuseSocket bool
callback AsyncCallback
state object
Результат IAsyncResult

BeginReceive() публичный Метод

public BeginReceive ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
callback AsyncCallback
state object
Результат IAsyncResult

BeginReceive() публичный Метод

public BeginReceive ( IList buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state object
Результат IAsyncResult

BeginReceive() публичный Метод

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
Результат IAsyncResult

BeginReceive() публичный Метод

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
Результат IAsyncResult

BeginReceiveFrom() публичный Метод

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
Результат IAsyncResult

BeginReceiveMessageFrom() публичный Метод

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
Результат IAsyncResult

BeginSend() публичный Метод

public BeginSend ( IList buffers, SocketFlags socketFlags, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
callback AsyncCallback
state object
Результат IAsyncResult

BeginSend() публичный Метод

public BeginSend ( IList buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, object state ) : IAsyncResult
buffers IList
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state object
Результат IAsyncResult

BeginSend() публичный Метод

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
Результат IAsyncResult

BeginSend() публичный Метод

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
Результат IAsyncResult

BeginSendTo() публичный Метод

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
Результат IAsyncResult

Bind() публичный Метод

public Bind ( EndPoint localEP ) : void
localEP System.Net.EndPoint
Результат void

CancelConnectAsync() публичный статический Метод

public static CancelConnectAsync ( SocketAsyncEventArgs e ) : void
e SocketAsyncEventArgs
Результат void

Close() публичный Метод

public Close ( ) : void
Результат void

Close() публичный Метод

public Close ( int timeout ) : void
timeout int
Результат void

Connect() публичный Метод

public Connect ( EndPoint remoteEP ) : void
remoteEP System.Net.EndPoint
Результат void

Connect() публичный Метод

public Connect ( IPAddress address, int port ) : void
address System.Net.IPAddress
port int
Результат void

Connect() публичный Метод

public Connect ( string host, int port ) : void
host string
port int
Результат void

ConnectAsync() публичный Метод

public ConnectAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

ConnectAsync() публичный статический Метод

public static ConnectAsync ( SocketType socketType, ProtocolType protocolType, SocketAsyncEventArgs e ) : bool
socketType SocketType
protocolType ProtocolType
e SocketAsyncEventArgs
Результат bool

Disconnect() публичный Метод

public Disconnect ( bool reuseSocket ) : void
reuseSocket bool
Результат void

DisconnectAsync() публичный Метод

public DisconnectAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

DuplicateAndClose() публичный Метод

public DuplicateAndClose ( int targetProcessId ) : SocketInformation
targetProcessId int
Результат SocketInformation

EndAccept() публичный Метод

public EndAccept ( IAsyncResult asyncResult ) : Socket
asyncResult IAsyncResult
Результат Socket

EndConnect() публичный Метод

public EndConnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Результат void

EndDisconnect() публичный Метод

public EndDisconnect ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Результат void

EndReceive() публичный Метод

public EndReceive ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Результат int

EndReceive() публичный Метод

public EndReceive ( IAsyncResult asyncResult, SocketError &errorCode ) : int
asyncResult IAsyncResult
errorCode SocketError
Результат int

EndReceiveFrom() публичный Метод

public EndReceiveFrom ( IAsyncResult asyncResult, EndPoint &endPoint ) : int
asyncResult IAsyncResult
endPoint System.Net.EndPoint
Результат int

EndReceiveMessageFrom() публичный Метод

public EndReceiveMessageFrom ( IAsyncResult asyncResult, SocketFlags &socketFlags, EndPoint &endPoint, IPPacketInformation &ipPacketInformation ) : int
asyncResult IAsyncResult
socketFlags SocketFlags
endPoint System.Net.EndPoint
ipPacketInformation IPPacketInformation
Результат int

EndSend() публичный Метод

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Результат int

EndSend() публичный Метод

public EndSend ( IAsyncResult asyncResult, SocketError &errorCode ) : int
asyncResult IAsyncResult
errorCode SocketError
Результат int

EndSendTo() публичный Метод

public EndSendTo ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Результат int

GetSocketOption() публичный Метод

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionLength ) : byte[]
optionLevel SocketOptionLevel
optionName SocketOptionName
optionLength int
Результат byte[]

GetSocketOption() публичный Метод

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName ) : object
optionLevel SocketOptionLevel
optionName SocketOptionName
Результат object

GetSocketOption() публичный Метод

public GetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
Результат void

IOControl() публичный Метод

public IOControl ( IOControlCode ioControlCode, byte optionInValue, byte optionOutValue ) : int
ioControlCode IOControlCode
optionInValue byte
optionOutValue byte
Результат int

IOControl() публичный Метод

public IOControl ( int ioControlCode, byte optionInValue, byte optionOutValue ) : int
ioControlCode int
optionInValue byte
optionOutValue byte
Результат int

Listen() публичный Метод

public Listen ( int backlog ) : void
backlog int
Результат void

Poll() публичный Метод

public Poll ( int microSeconds, SelectMode mode ) : bool
microSeconds int
mode SelectMode
Результат bool

Receive() публичный Метод

public Receive ( IList buffers ) : int
buffers IList
Результат int

Receive() публичный Метод

public Receive ( IList buffers, SocketFlags socketFlags ) : int
buffers IList
socketFlags SocketFlags
Результат int

Receive() публичный Метод

public Receive ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
Результат int

Receive() публичный Метод

public Receive ( byte buffer ) : int
buffer byte
Результат int

Receive() публичный Метод

public Receive ( byte buffer, SocketFlags socketFlags ) : int
buffer byte
socketFlags SocketFlags
Результат int

Receive() публичный Метод

public Receive ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
Результат int

Receive() публичный Метод

public Receive ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
Результат int

Receive() публичный Метод

public Receive ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
errorCode SocketError
Результат int

ReceiveAsync() публичный Метод

public ReceiveAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

ReceiveFrom() публичный Метод

public ReceiveFrom ( byte buffer, EndPoint &remoteEP ) : int
buffer byte
remoteEP EndPoint
Результат int

ReceiveFrom() публичный Метод

public ReceiveFrom ( byte buffer, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
socketFlags SocketFlags
remoteEP EndPoint
Результат int

ReceiveFrom() публичный Метод

public ReceiveFrom ( byte buffer, int size, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
size int
socketFlags SocketFlags
remoteEP EndPoint
Результат int

ReceiveFrom() публичный Метод

public ReceiveFrom ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint &remoteEP ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP EndPoint
Результат int

ReceiveFromAsync() публичный Метод

public ReceiveFromAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

ReceiveMessageFrom() публичный Метод

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
Результат int

ReceiveMessageFromAsync() публичный Метод

public ReceiveMessageFromAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

Select() публичный статический Метод

public static Select ( IList checkRead, IList checkWrite, IList checkError, int microSeconds ) : void
checkRead IList
checkWrite IList
checkError IList
microSeconds int
Результат void

Send() публичный Метод

public Send ( IList buffers ) : int
buffers IList
Результат int

Send() публичный Метод

public Send ( IList buffers, SocketFlags socketFlags ) : int
buffers IList
socketFlags SocketFlags
Результат int

Send() публичный Метод

public Send ( IList buffers, SocketFlags socketFlags, SocketError &errorCode ) : int
buffers IList
socketFlags SocketFlags
errorCode SocketError
Результат int

Send() публичный Метод

public Send ( byte buffer ) : int
buffer byte
Результат int

Send() публичный Метод

public Send ( byte buffer, SocketFlags socketFlags ) : int
buffer byte
socketFlags SocketFlags
Результат int

Send() публичный Метод

public Send ( byte buffer, int size, SocketFlags socketFlags ) : int
buffer byte
size int
socketFlags SocketFlags
Результат int

Send() публичный Метод

public Send ( byte buffer, int offset, int size, SocketFlags socketFlags ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
Результат int

Send() публичный Метод

public Send ( byte buffer, int offset, int size, SocketFlags socketFlags, SocketError &errorCode ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
errorCode SocketError
Результат int

SendAsync() публичный Метод

public SendAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

SendPacketsAsync() публичный Метод

public SendPacketsAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

SendTo() публичный Метод

public SendTo ( byte buffer, EndPoint remoteEP ) : int
buffer byte
remoteEP EndPoint
Результат int

SendTo() публичный Метод

public SendTo ( byte buffer, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
socketFlags SocketFlags
remoteEP EndPoint
Результат int

SendTo() публичный Метод

public SendTo ( byte buffer, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
size int
socketFlags SocketFlags
remoteEP EndPoint
Результат int

SendTo() публичный Метод

public SendTo ( byte buffer, int offset, int size, SocketFlags socketFlags, EndPoint remoteEP ) : int
buffer byte
offset int
size int
socketFlags SocketFlags
remoteEP EndPoint
Результат int

SendToAsync() публичный Метод

public SendToAsync ( SocketAsyncEventArgs e ) : bool
e SocketAsyncEventArgs
Результат bool

SetIPProtectionLevel() публичный Метод

public SetIPProtectionLevel ( IPProtectionLevel level ) : void
level IPProtectionLevel
Результат void

SetSocketOption() публичный Метод

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue bool
Результат void

SetSocketOption() публичный Метод

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, byte optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue byte
Результат void

SetSocketOption() публичный Метод

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue int
Результат void

SetSocketOption() публичный Метод

public SetSocketOption ( SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue ) : void
optionLevel SocketOptionLevel
optionName SocketOptionName
optionValue object
Результат void

Shutdown() публичный Метод

public Shutdown ( SocketShutdown how ) : void
how SocketShutdown
Результат void

Socket() публичный Метод

public Socket ( AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType ) : System.Collections.Generic
addressFamily AddressFamily
socketType SocketType
protocolType ProtocolType
Результат System.Collections.Generic

Socket() публичный Метод

public Socket ( SocketInformation socketInformation ) : System.Collections.Generic
socketInformation SocketInformation
Результат System.Collections.Generic

Socket() публичный Метод

public Socket ( SocketType socketType, ProtocolType protocolType ) : System.Collections.Generic
socketType SocketType
protocolType ProtocolType
Результат System.Collections.Generic