docs.unity3d.com
    Show / Hide Table of Contents

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023