SocketExtensions Class
Namespace: Stride.Engine.Network
Assembly: Stride.Engine.dll
System.Object →
SocketExtensions
Derived from SocketExtensions:
public static class SocketExtensions
|
Improve this Doc
View Source
Methods
Read7BitEncodedInt(Stream)
public static async Task<int> Read7BitEncodedInt(this Stream socket)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
ReadAllAsync(Stream, Byte[], Int32, Int32)
public static async Task ReadAllAsync(this Stream socket, byte[] buffer, int offset, int size)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
System.Byte[] |
buffer |
|
System.Int32 |
offset |
|
System.Int32 |
size |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
ReadGuidAsync(Stream)
public static async Task<Guid> ReadGuidAsync(this Stream socket)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Guid> |
|
ReadInt16Async(Stream)
public static async Task<short> ReadInt16Async(this Stream socket)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int16> |
|
ReadInt32Async(Stream)
public static async Task<int> ReadInt32Async(this Stream socket)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
ReadStringAsync(Stream)
public static async Task<string> ReadStringAsync(this Stream socket)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
Write7BitEncodedInt(Stream, Int32)
public static async Task Write7BitEncodedInt(this Stream socket, int value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
System.Int32 |
value |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
WriteGuidAsync(Stream, Guid)
public static async Task WriteGuidAsync(this Stream socket, Guid guid)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
System.Guid |
guid |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
WriteInt16Async(Stream, Int16)
public static async Task WriteInt16Async(this Stream socket, short value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
System.Int16 |
value |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
WriteInt32Async(Stream, Int32)
public static async Task WriteInt32Async(this Stream socket, int value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
System.Int32 |
value |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
WriteStringAsync(Stream, String)
public static async Task WriteStringAsync(this Stream socket, string value)
Parameters
Type |
Name |
Description |
System.IO.Stream |
socket |
|
System.String |
value |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|