docs.unity.cn
    Show / Hide Table of Contents

    Class NativeBindings

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

    Methods

    network_close(ref Int64, ref Int32)

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

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

    Declaration
    public static extern 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 extern 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 extern 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 extern 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 extern 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 extern 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 extern 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 extern 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 extern int network_terminate()
    Returns
    Type Description
    Int32
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, March 31, 2022
    Terms of use