Class NativeBindings | Unity Transport | 0.2.4-preview.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class NativeBindings

    Inheritance
    Object
    NativeBindings
    Namespace: Unity.Networking.Transport
    Syntax
    public static class NativeBindings

    Methods

    network_close(ref Int64, ref Int32)

    Declaration
    public static int network_close(ref long socket_handle, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    Int32 errorcode
    Returns
    Type Description
    Int32

    network_create_and_bind(ref Int64, ref NetworkEndPoint, ref Int32)

    Declaration
    public static int network_create_and_bind(ref long socket_handle, ref NetworkEndPoint address, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    NetworkEndPoint address
    Int32 errorcode
    Returns
    Type Description
    Int32

    network_get_socket_address(Int64, ref NetworkEndPoint, ref Int32)

    Declaration
    public static int network_get_socket_address(long socket_handle, ref NetworkEndPoint own_address, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    NetworkEndPoint own_address
    Int32 errorcode
    Returns
    Type Description
    Int32

    network_initialize()

    Declaration
    public static int network_initialize()
    Returns
    Type Description
    Int32

    network_recvmsg(Int64, Void*, Int32, ref NetworkEndPoint, ref Int32)

    Declaration
    public static int network_recvmsg(long socket_handle, void *iov, int iov_len, ref NetworkEndPoint remote, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    Void* iov
    Int32 iov_len
    NetworkEndPoint remote
    Int32 errorcode
    Returns
    Type Description
    Int32

    network_sendmsg(Int64, Void*, Int32, ref NetworkEndPoint, ref Int32)

    Declaration
    public static int network_sendmsg(long socket_handle, void *iov, int iov_len, ref NetworkEndPoint address, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    Void* iov
    Int32 iov_len
    NetworkEndPoint address
    Int32 errorcode
    Returns
    Type Description
    Int32

    network_set_connection_reset(Int64, Int32)

    Declaration
    public static int network_set_connection_reset(long socket_handle, int value)
    Parameters
    Type Name Description
    Int64 socket_handle
    Int32 value
    Returns
    Type Description
    Int32

    network_set_nonblocking(Int64)

    Declaration
    public static int network_set_nonblocking(long socket_handle)
    Parameters
    Type Name Description
    Int64 socket_handle
    Returns
    Type Description
    Int32

    network_set_receive_buffer_size(Int64, Int32)

    Declaration
    public static int network_set_receive_buffer_size(long socket_handle, int size)
    Parameters
    Type Name Description
    Int64 socket_handle
    Int32 size
    Returns
    Type Description
    Int32

    network_set_send_buffer_size(Int64, Int32)

    Declaration
    public static int network_set_send_buffer_size(long socket_handle, int size)
    Parameters
    Type Name Description
    Int64 socket_handle
    Int32 size
    Returns
    Type Description
    Int32

    network_terminate()

    Declaration
    public static int network_terminate()
    Returns
    Type Description
    Int32
    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