Enum StatusCode
Status codes that can be returned by many functions in the transport API.
Namespace: Unity.Networking.Transport.Error
Syntax
public enum StatusCode
Fields
| Name | Description | Value |
|---|---|---|
| NetworkSocketError | There was an error from the underlying low-level socket. |
-11 |
| NetworkReceiveQueueFull | A message couldn't be received because the receive queue is full. This can only be returned through ReceiveErrorCode. |
-10 |
| NetworkArgumentMismatch | Obsolete. Will never be returned. |
-9 |
| NetworkSendHandleInvalid | The DataStreamWriter is invalid. |
-8 |
| NetworkDriverParallelForErr | Attempted to process the same connection in different jobs. |
-7 |
| NetworkHeaderInvalid | Obsolete. Will never be returned. |
-6 |
| NetworkSendQueueFull | Packet couldn't be sent because the send queue is full. |
-5 |
| NetworkPacketOverflow | Packet is too large for the supported capacity. |
-4 |
| NetworkStateMismatch | State of the connection is invalid for the operation requested. This is usually caused by an attempt to send on a connecting/closed connection. |
-3 |
| NetworkVersionMismatch | Connection is invalid. This is usually caused by an attempt to use a connection that has been already closed. |
-2 |
| NetworkIdMismatch | Connection is invalid. |
-1 |
| Success | Operation completed successfully. |
0 |