Table of Contents

Class SocketExtensions

Namespace
Stride.Engine.Network
Assembly
Stride.Engine.dll
public static class SocketExtensions
Inheritance
SocketExtensions

Methods

Read7BitEncodedInt(Stream)

public static Task<int> Read7BitEncodedInt(this Stream socket)

Parameters

socket Stream

Returns

Task<int>

ReadAllAsync(Stream, byte[], int, int)

public static Task ReadAllAsync(this Stream socket, byte[] buffer, int offset, int size)

Parameters

socket Stream
buffer byte[]
offset int
size int

Returns

Task

ReadGuidAsync(Stream)

public static Task<Guid> ReadGuidAsync(this Stream socket)

Parameters

socket Stream

Returns

Task<Guid>

ReadInt16Async(Stream)

public static Task<short> ReadInt16Async(this Stream socket)

Parameters

socket Stream

Returns

Task<short>

ReadInt32Async(Stream)

public static Task<int> ReadInt32Async(this Stream socket)

Parameters

socket Stream

Returns

Task<int>

ReadStringAsync(Stream)

public static Task<string> ReadStringAsync(this Stream socket)

Parameters

socket Stream

Returns

Task<string>

Write7BitEncodedInt(Stream, int)

public static Task Write7BitEncodedInt(this Stream socket, int value)

Parameters

socket Stream
value int

Returns

Task

WriteGuidAsync(Stream, Guid)

public static Task WriteGuidAsync(this Stream socket, Guid guid)

Parameters

socket Stream
guid Guid

Returns

Task

WriteInt16Async(Stream, short)

public static Task WriteInt16Async(this Stream socket, short value)

Parameters

socket Stream
value short

Returns

Task

WriteInt32Async(Stream, int)

public static Task WriteInt32Async(this Stream socket, int value)

Parameters

socket Stream
value int

Returns

Task

WriteStringAsync(Stream, string)

public static Task WriteStringAsync(this Stream socket, string value)

Parameters

socket Stream
value string

Returns

Task