docs.unity3d.com
    Show / Hide Table of Contents

    Enum StatusCode

    Status code returned by many functions in the API.

    Namespace: Unity.Networking.Transport.Error
    Syntax
    public enum StatusCode
    Remarks

    Any value less than 0 denotes a failure.

    Fields

    Name Description Value
    NetworkSocketError

    The underlying network socket has failed.


    -10
    NetworkArgumentMismatch

    Tried to create an IPCNetworkInterface on a non-loopback address.


    -9
    NetworkSendHandleInvalid

    Internal send handle is invalid.


    -8
    NetworkDriverParallelForErr

    Tried to process the same connection multiple times in a parallel job.


    -7
    NetworkHeaderInvalid

    A packet's header is invalid.


    -6
    NetworkSendQueueFull

    Network send queue is full.


    -5
    NetworkPacketOverflow

    Packet data is too large to handle.


    -4
    NetworkStateMismatch

    Invalid operation given connection's state.


    -3
    NetworkVersionMismatch

    Unknown connection (internal ID in use by newer connection).


    -2
    NetworkIdMismatch

    Unknown connection (internal ID doesn't exist).


    -1
    Success

    Success; no error encountered.


    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