docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SocketTask

    A single socket task.

    Inheritance
    object
    SocketTask
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MLAPI.Transports.Tasks
    Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
    Syntax
    public class SocketTask

    Properties

    Done

    Gets a done task.

    Declaration
    public static SocketTask Done { get; }
    Property Value
    Type Description
    SocketTask

    The done.

    Fault

    Gets a faulty task.

    Declaration
    public static SocketTask Fault { get; }
    Property Value
    Type Description
    SocketTask

    The fault.

    IsDone

    Gets or sets a value indicating whether this SocketTask is done.

    Declaration
    public bool IsDone { get; set; }
    Property Value
    Type Description
    bool

    true if is done; otherwise, false.

    Message

    Gets or sets the message.

    Declaration
    public string Message { get; set; }
    Property Value
    Type Description
    string

    The message.

    SocketError

    Gets or sets the socket error.

    Declaration
    public SocketError SocketError { get; set; }
    Property Value
    Type Description
    SocketError

    The socket error.

    State

    Gets or sets the state.

    Declaration
    public object State { get; set; }
    Property Value
    Type Description
    object

    The state.

    Success

    Gets or sets a value indicating whether this SocketTask is success.

    Declaration
    public bool Success { get; set; }
    Property Value
    Type Description
    bool

    true if success; otherwise, false.

    TransportCode

    Gets or sets the transport code.

    Declaration
    public int TransportCode { get; set; }
    Property Value
    Type Description
    int

    The transport code.

    TransportException

    Gets or sets the transport exception.

    Declaration
    public Exception TransportException { get; set; }
    Property Value
    Type Description
    Exception

    The transport exception.

    Working

    Gets a working task.

    Declaration
    public static SocketTask Working { get; }
    Property Value
    Type Description
    SocketTask

    The working.

    Methods

    AsTasks()

    Converts to a SocketTasks.

    Declaration
    public SocketTasks AsTasks()
    Returns
    Type Description
    SocketTasks

    The tasks.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)