Class SocketExtensions
public static class SocketExtensions
- Inheritance
-
SocketExtensions
Methods
Read7BitEncodedInt(Stream)
public static Task<int> Read7BitEncodedInt(this Stream socket)
Parameters
socket
Stream
Returns
ReadAllAsync(Stream, byte[], int, int)
public static Task ReadAllAsync(this Stream socket, byte[] buffer, int offset, int size)
Parameters
Returns
ReadGuidAsync(Stream)
public static Task<Guid> ReadGuidAsync(this Stream socket)
Parameters
socket
Stream
Returns
ReadInt16Async(Stream)
public static Task<short> ReadInt16Async(this Stream socket)
Parameters
socket
Stream
Returns
ReadInt32Async(Stream)
public static Task<int> ReadInt32Async(this Stream socket)
Parameters
socket
Stream
Returns
ReadStringAsync(Stream)
public static Task<string> ReadStringAsync(this Stream socket)
Parameters
socket
Stream
Returns
Write7BitEncodedInt(Stream, int)
public static Task Write7BitEncodedInt(this Stream socket, int value)
Parameters
Returns
WriteGuidAsync(Stream, Guid)
public static Task WriteGuidAsync(this Stream socket, Guid guid)
Parameters
Returns
WriteInt16Async(Stream, short)
public static Task WriteInt16Async(this Stream socket, short value)
Parameters
Returns
WriteInt32Async(Stream, int)
public static Task WriteInt32Async(this Stream socket, int value)
Parameters
Returns
WriteStringAsync(Stream, string)
public static Task WriteStringAsync(this Stream socket, string value)