Class NativeBindings | Unity Transport | 0.3.1-preview.4
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 network_address, ref Int32)

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

    network_get_receive_buffer_size(Int64, ref Int32, ref Int32)

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

    network_get_send_buffer_size(Int64, ref Int32, ref Int32)

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

    network_get_socket_address(Int64, ref network_address, ref Int32)

    Declaration
    public static int network_get_socket_address(long socket_handle, ref network_address own_address, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    network_address 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 network_address, ref Int32)

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

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

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

    network_set_blocking(Int64, ref Int32)

    Declaration
    public static int network_set_blocking(long socket_handle, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    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, ref Int32)

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

    network_set_receive_buffer_size(Int64, Int32, ref Int32)

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

    network_set_receive_timeout(Int64, UInt64, ref Int32)

    Declaration
    public static int network_set_receive_timeout(long socket_handle, ulong timeout, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    UInt64 timeout
    Int32 errorcode
    Returns
    Type Description
    Int32

    network_set_send_buffer_size(Int64, Int32, ref Int32)

    Declaration
    public static int network_set_send_buffer_size(long socket_handle, int size, ref int errorcode)
    Parameters
    Type Name Description
    Int64 socket_handle
    Int32 size
    Int32 errorcode
    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