Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    SocketExtensions Class

    Namespace: Stride.Engine.Network
    Assembly: Stride.Engine.dll
    System.Object → SocketExtensions
    Derived from SocketExtensions:

    public static class SocketExtensions
    Name Description
    Methods
    Read7BitEncodedInt(Stream)
    ReadAllAsync(Stream, Byte[], Int32, Int32)
    ReadGuidAsync(Stream)
    ReadInt16Async(Stream)
    ReadInt32Async(Stream)
    ReadStringAsync(Stream)
    Write7BitEncodedInt(Stream, Int32)
    WriteGuidAsync(Stream, Guid)
    WriteInt16Async(Stream, Int16)
    WriteInt32Async(Stream, Int32)
    WriteStringAsync(Stream, String)
    | 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

    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation