Class SocketTask
A single socket task.
Inherited Members
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 |
|
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 |
|
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. |