C# Class PRI.ProductivityExtensions.SocketExtensions.Socketable

Afficher le fichier Open project: peteraritchie/ProductivityExtensions

Méthodes publiques

Méthode Description
BeginAccept ( this socket, AsyncCallback callback ) : IAsyncResult

Extends BeginAccept so that when a state object is not needed, null does not need to be passed. socket.BeginAccept(callback);

BeginAccept ( this socket, Int32 receiveSize, AsyncCallback callback ) : IAsyncResult

Extends BeginAccept so that when a state object is not needed, null does not need to be passed. socket.BeginAccept(receiveSize, callback);

BeginAccept ( this socket, Socket acceptSocket, Int32 receiveSize, AsyncCallback callback ) : IAsyncResult

Extends BeginAccept so that when a state object is not needed, null does not need to be passed. socket.BeginAccept(acceptSocket, receiveSize, callback);

BeginConnect ( this socket, String host, Int32 port, AsyncCallback requestCallback ) : IAsyncResult

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. socket.BeginConnect(host, port, requestCallback);

BeginConnect ( this socket, System remoteEP, AsyncCallback callback ) : IAsyncResult

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. socket.BeginConnect(remoteEP, callback);

BeginConnect ( this socket, System address, Int32 port, AsyncCallback requestCallback ) : IAsyncResult

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. socket.BeginConnect(address, port, requestCallback);

BeginDisconnect ( this socket, System.Boolean reuseSocket, AsyncCallback callback ) : IAsyncResult

Extends BeginDisconnect so that when a state object is not needed, null does not need to be passed. socket.BeginDisconnect(reuseSocket, callback);

BeginReceive ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffer, offset, size, socketFlags, callback);

BeginReceive ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffer, offset, size, socketFlags, errorCode, callback);

BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, callback);

BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback, Object state ) : IAsyncResult

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, callback, state);

BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, errorCode, callback);

BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, Object state ) : IAsyncResult

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, errorCode, callback, state);

BeginReceive ( this socket, System buffers, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffers, socketFlags, callback);

BeginReceive ( this socket, System buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffers, socketFlags, errorCode, callback);

BeginReceiveFrom ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult

Extends BeginReceiveFrom so that when a state object is not needed, null does not need to be passed. socket.BeginReceiveFrom(buffer, offset, size, socketFlags, remoteEP, callback);

BeginReceiveFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult

Extends BeginReceiveFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveFrom(buffer, socketFlags, remoteEP, callback);

BeginReceiveFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback, Object state ) : IAsyncResult

Extends BeginReceiveFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveFrom(buffer, socketFlags, remoteEP, callback, state);

BeginReceiveMessageFrom ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult

Extends BeginReceiveMessageFrom so that when a state object is not needed, null does not need to be passed. socket.BeginReceiveMessageFrom(buffer, offset, size, socketFlags, remoteEP, callback);

BeginReceiveMessageFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult

Extends BeginReceiveMessageFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveMessageFrom(buffer, socketFlags, remoteEP, callback);

BeginReceiveMessageFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback, Object state ) : IAsyncResult

Extends BeginReceiveMessageFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveMessageFrom(buffer, socketFlags, remoteEP, callback, state);

BeginSend ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffer, offset, size, socketFlags, callback);

BeginSend ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffer, offset, size, socketFlags, errorCode, callback);

BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, callback);

BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback, Object state ) : IAsyncResult

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, callback, state);

BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, errorCode, callback);

BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, Object state ) : IAsyncResult

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, errorCode, callback, state);

BeginSend ( this socket, System buffers, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffers, socketFlags, callback);

BeginSend ( this socket, System buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffers, socketFlags, errorCode, callback);

BeginSendFile ( this socket, String fileName, AsyncCallback callback ) : IAsyncResult

Extends BeginSendFile so that when a state object is not needed, null does not need to be passed. socket.BeginSendFile(fileName, callback);

BeginSendFile ( this socket, String fileName, Byte preBuffer, Byte postBuffer, TransmitFileOptions flags, AsyncCallback callback ) : IAsyncResult

Extends BeginSendFile so that when a state object is not needed, null does not need to be passed. socket.BeginSendFile(fileName, preBuffer, postBuffer, flags, callback);

BeginSendTo ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, System remoteEP, AsyncCallback callback ) : IAsyncResult

Extends BeginSendTo so that when a state object is not needed, null does not need to be passed. socket.BeginSendTo(buffer, offset, size, socketFlags, remoteEP, callback);

BeginSendTo ( this socket, Byte buffer, SocketFlags socketFlags, System remoteEP, AsyncCallback callback ) : IAsyncResult

Extends BeginSendTo so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSendTo(buffer, socketFlags, remoteEP, callback);

BeginSendTo ( this socket, Byte buffer, SocketFlags socketFlags, System remoteEP, AsyncCallback callback, Object state ) : IAsyncResult

Extends BeginSendTo so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSendTo(buffer, socketFlags, remoteEP, callback, state);

Receive ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode ) : Int32

Extends Receive so that buffer offset of 0 and call to Array.Length are not needed. socket.Receive(buffer, socketFlags, errorCode);

ReceiveAsync ( this s, byte buffer ) : Task
ReceiveMessageFrom ( this socket, Byte buffer, SocketFlags &socketFlags, System &remoteEP, IPPacketInformation &ipPacketInformation ) : Int32

Extends ReceiveMessageFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.ReceiveMessageFrom(buffer, socketFlags, remoteEP, ipPacketInformation);

Send ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode ) : Int32

Extends Send so that buffer offset of 0 and call to Array.Length are not needed. socket.Send(buffer, socketFlags, errorCode);

SendAsync ( this socket, byte buffer ) : IAwaitable

Private Methods

Méthode Description
ReceiveAsync ( this socket, System.Net.Sockets.SocketAwaitable awaitable ) : System.Net.Sockets.SocketAwaitable
SendAsync ( this socket, System.Net.Sockets.SocketAwaitable awaitable ) : IAwaitable

Method Details

BeginAccept() public static méthode

Extends BeginAccept so that when a state object is not needed, null does not need to be passed. socket.BeginAccept(callback);
public static BeginAccept ( this socket, AsyncCallback callback ) : IAsyncResult
socket this
callback AsyncCallback
Résultat IAsyncResult

BeginAccept() public static méthode

Extends BeginAccept so that when a state object is not needed, null does not need to be passed. socket.BeginAccept(receiveSize, callback);
public static BeginAccept ( this socket, Int32 receiveSize, AsyncCallback callback ) : IAsyncResult
socket this
receiveSize System.Int32
callback AsyncCallback
Résultat IAsyncResult

BeginAccept() public static méthode

Extends BeginAccept so that when a state object is not needed, null does not need to be passed. socket.BeginAccept(acceptSocket, receiveSize, callback);
public static BeginAccept ( this socket, Socket acceptSocket, Int32 receiveSize, AsyncCallback callback ) : IAsyncResult
socket this
acceptSocket System.Net.Sockets.Socket
receiveSize System.Int32
callback AsyncCallback
Résultat IAsyncResult

BeginConnect() public static méthode

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. socket.BeginConnect(host, port, requestCallback);
public static BeginConnect ( this socket, String host, Int32 port, AsyncCallback requestCallback ) : IAsyncResult
socket this
host String
port System.Int32
requestCallback AsyncCallback
Résultat IAsyncResult

BeginConnect() public static méthode

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. socket.BeginConnect(remoteEP, callback);
public static BeginConnect ( this socket, System remoteEP, AsyncCallback callback ) : IAsyncResult
socket this
remoteEP System
callback AsyncCallback
Résultat IAsyncResult

BeginConnect() public static méthode

Extends BeginConnect so that when a state object is not needed, null does not need to be passed. socket.BeginConnect(address, port, requestCallback);
public static BeginConnect ( this socket, System address, Int32 port, AsyncCallback requestCallback ) : IAsyncResult
socket this
address System
port System.Int32
requestCallback AsyncCallback
Résultat IAsyncResult

BeginDisconnect() public static méthode

Extends BeginDisconnect so that when a state object is not needed, null does not need to be passed. socket.BeginDisconnect(reuseSocket, callback);
public static BeginDisconnect ( this socket, System.Boolean reuseSocket, AsyncCallback callback ) : IAsyncResult
socket this
reuseSocket System.Boolean
callback AsyncCallback
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffer, offset, size, socketFlags, callback);
public static BeginReceive ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
offset System.Int32
size System.Int32
socketFlags SocketFlags
callback AsyncCallback
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffer, offset, size, socketFlags, errorCode, callback);
public static BeginReceive ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
offset System.Int32
size System.Int32
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, callback);
public static BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
callback AsyncCallback
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, callback, state);
public static BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback, Object state ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, errorCode, callback);
public static BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceive(buffer, socketFlags, errorCode, callback, state);
public static BeginReceive ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, Object state ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffers, socketFlags, callback);
public static BeginReceive ( this socket, System buffers, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult
socket this
buffers System
socketFlags SocketFlags
callback AsyncCallback
Résultat IAsyncResult

BeginReceive() public static méthode

Extends BeginReceive so that when a state object is not needed, null does not need to be passed. socket.BeginReceive(buffers, socketFlags, errorCode, callback);
public static BeginReceive ( this socket, System buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult
socket this
buffers System
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
Résultat IAsyncResult

BeginReceiveFrom() public static méthode

Extends BeginReceiveFrom so that when a state object is not needed, null does not need to be passed. socket.BeginReceiveFrom(buffer, offset, size, socketFlags, remoteEP, callback);
public static BeginReceiveFrom ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
offset System.Int32
size System.Int32
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
Résultat IAsyncResult

BeginReceiveFrom() public static méthode

Extends BeginReceiveFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveFrom(buffer, socketFlags, remoteEP, callback);
public static BeginReceiveFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
Résultat IAsyncResult

BeginReceiveFrom() public static méthode

Extends BeginReceiveFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveFrom(buffer, socketFlags, remoteEP, callback, state);
public static BeginReceiveFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback, Object state ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginReceiveMessageFrom() public static méthode

Extends BeginReceiveMessageFrom so that when a state object is not needed, null does not need to be passed. socket.BeginReceiveMessageFrom(buffer, offset, size, socketFlags, remoteEP, callback);
public static BeginReceiveMessageFrom ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
offset System.Int32
size System.Int32
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
Résultat IAsyncResult

BeginReceiveMessageFrom() public static méthode

Extends BeginReceiveMessageFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveMessageFrom(buffer, socketFlags, remoteEP, callback);
public static BeginReceiveMessageFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
Résultat IAsyncResult

BeginReceiveMessageFrom() public static méthode

Extends BeginReceiveMessageFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginReceiveMessageFrom(buffer, socketFlags, remoteEP, callback, state);
public static BeginReceiveMessageFrom ( this socket, Byte buffer, SocketFlags socketFlags, System &remoteEP, AsyncCallback callback, Object state ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffer, offset, size, socketFlags, callback);
public static BeginSend ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
offset System.Int32
size System.Int32
socketFlags SocketFlags
callback AsyncCallback
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffer, offset, size, socketFlags, errorCode, callback);
public static BeginSend ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
offset System.Int32
size System.Int32
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, callback);
public static BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
callback AsyncCallback
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, callback, state);
public static BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, AsyncCallback callback, Object state ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, errorCode, callback);
public static BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSend(buffer, socketFlags, errorCode, callback, state);
public static BeginSend ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback, Object state ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffers, socketFlags, callback);
public static BeginSend ( this socket, System buffers, SocketFlags socketFlags, AsyncCallback callback ) : IAsyncResult
socket this
buffers System
socketFlags SocketFlags
callback AsyncCallback
Résultat IAsyncResult

BeginSend() public static méthode

Extends BeginSend so that when a state object is not needed, null does not need to be passed. socket.BeginSend(buffers, socketFlags, errorCode, callback);
public static BeginSend ( this socket, System buffers, SocketFlags socketFlags, SocketError &errorCode, AsyncCallback callback ) : IAsyncResult
socket this
buffers System
socketFlags SocketFlags
errorCode SocketError
callback AsyncCallback
Résultat IAsyncResult

BeginSendFile() public static méthode

Extends BeginSendFile so that when a state object is not needed, null does not need to be passed. socket.BeginSendFile(fileName, callback);
public static BeginSendFile ( this socket, String fileName, AsyncCallback callback ) : IAsyncResult
socket this
fileName String
callback AsyncCallback
Résultat IAsyncResult

BeginSendFile() public static méthode

Extends BeginSendFile so that when a state object is not needed, null does not need to be passed. socket.BeginSendFile(fileName, preBuffer, postBuffer, flags, callback);
public static BeginSendFile ( this socket, String fileName, Byte preBuffer, Byte postBuffer, TransmitFileOptions flags, AsyncCallback callback ) : IAsyncResult
socket this
fileName String
preBuffer Byte
postBuffer Byte
flags TransmitFileOptions
callback AsyncCallback
Résultat IAsyncResult

BeginSendTo() public static méthode

Extends BeginSendTo so that when a state object is not needed, null does not need to be passed. socket.BeginSendTo(buffer, offset, size, socketFlags, remoteEP, callback);
public static BeginSendTo ( this socket, Byte buffer, Int32 offset, Int32 size, SocketFlags socketFlags, System remoteEP, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
offset System.Int32
size System.Int32
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
Résultat IAsyncResult

BeginSendTo() public static méthode

Extends BeginSendTo so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSendTo(buffer, socketFlags, remoteEP, callback);
public static BeginSendTo ( this socket, Byte buffer, SocketFlags socketFlags, System remoteEP, AsyncCallback callback ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
Résultat IAsyncResult

BeginSendTo() public static méthode

Extends BeginSendTo so that buffer offset of 0 and call to Array.Length are not needed. socket.BeginSendTo(buffer, socketFlags, remoteEP, callback, state);
public static BeginSendTo ( this socket, Byte buffer, SocketFlags socketFlags, System remoteEP, AsyncCallback callback, Object state ) : IAsyncResult
socket this
buffer Byte
socketFlags SocketFlags
remoteEP System
callback AsyncCallback
state Object
Résultat IAsyncResult

Receive() public static méthode

Extends Receive so that buffer offset of 0 and call to Array.Length are not needed. socket.Receive(buffer, socketFlags, errorCode);
public static Receive ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode ) : Int32
socket this
buffer Byte
socketFlags SocketFlags
errorCode SocketError
Résultat System.Int32

ReceiveAsync() public static méthode

public static ReceiveAsync ( this s, byte buffer ) : Task
s this
buffer byte
Résultat Task

ReceiveMessageFrom() public static méthode

Extends ReceiveMessageFrom so that buffer offset of 0 and call to Array.Length are not needed. socket.ReceiveMessageFrom(buffer, socketFlags, remoteEP, ipPacketInformation);
public static ReceiveMessageFrom ( this socket, Byte buffer, SocketFlags &socketFlags, System &remoteEP, IPPacketInformation &ipPacketInformation ) : Int32
socket this
buffer Byte
socketFlags SocketFlags
remoteEP System
ipPacketInformation System.Net.Sockets.IPPacketInformation
Résultat System.Int32

Send() public static méthode

Extends Send so that buffer offset of 0 and call to Array.Length are not needed. socket.Send(buffer, socketFlags, errorCode);
public static Send ( this socket, Byte buffer, SocketFlags socketFlags, SocketError &errorCode ) : Int32
socket this
buffer Byte
socketFlags SocketFlags
errorCode SocketError
Résultat System.Int32

SendAsync() public static méthode

public static SendAsync ( this socket, byte buffer ) : IAwaitable
socket this
buffer byte
Résultat IAwaitable