C# Class PRI.ProductivityExtensions.SocketExtensions.Socketable

Show file Open project: peteraritchie/ProductivityExtensions

Public Methods

Method 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

Method 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 method

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
return IAsyncResult

BeginAccept() public static method

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
return IAsyncResult

BeginAccept() public static method

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
return IAsyncResult

BeginConnect() public static method

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
return IAsyncResult

BeginConnect() public static method

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
return IAsyncResult

BeginConnect() public static method

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
return IAsyncResult

BeginDisconnect() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceive() public static method

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
return IAsyncResult

BeginReceiveFrom() public static method

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
return IAsyncResult

BeginReceiveFrom() public static method

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
return IAsyncResult

BeginReceiveFrom() public static method

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
return IAsyncResult

BeginReceiveMessageFrom() public static method

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
return IAsyncResult

BeginReceiveMessageFrom() public static method

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
return IAsyncResult

BeginReceiveMessageFrom() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSend() public static method

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
return IAsyncResult

BeginSendFile() public static method

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
return IAsyncResult

BeginSendFile() public static method

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
return IAsyncResult

BeginSendTo() public static method

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
return IAsyncResult

BeginSendTo() public static method

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
return IAsyncResult

BeginSendTo() public static method

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
return IAsyncResult

Receive() public static method

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
return System.Int32

ReceiveAsync() public static method

public static ReceiveAsync ( this s, byte buffer ) : Task
s this
buffer byte
return Task

ReceiveMessageFrom() public static method

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
return System.Int32

Send() public static method

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
return System.Int32

SendAsync() public static method

public static SendAsync ( this socket, byte buffer ) : IAwaitable
socket this
buffer byte
return IAwaitable