Ejemplo n.º 1
0
    public static int netcode_generate_connect_token(int num_server_addresses, SWIGTYPE_p_p_char server_addresses, int expire_seconds, SWIGTYPE_p_uint64_t client_id, SWIGTYPE_p_uint64_t protocol_id, SWIGTYPE_p_uint64_t sequence, SWIGTYPE_p_uint8_t private_key, SWIGTYPE_p_uint8_t connect_token)
    {
        int ret = netcodePINVOKE.netcode_generate_connect_token(num_server_addresses, SWIGTYPE_p_p_char.getCPtr(server_addresses), expire_seconds, SWIGTYPE_p_uint64_t.getCPtr(client_id), SWIGTYPE_p_uint64_t.getCPtr(protocol_id), SWIGTYPE_p_uint64_t.getCPtr(sequence), SWIGTYPE_p_uint8_t.getCPtr(private_key), SWIGTYPE_p_uint8_t.getCPtr(connect_token));

        if (netcodePINVOKE.SWIGPendingException.Pending)
        {
            throw netcodePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 2
0
    public static SWIGTYPE_p_netcode_server_t netcode_server_create(string bind_address, string public_address, SWIGTYPE_p_uint64_t protocol_id, SWIGTYPE_p_uint8_t private_key, double time)
    {
        global::System.IntPtr       cPtr = netcodePINVOKE.netcode_server_create(bind_address, public_address, SWIGTYPE_p_uint64_t.getCPtr(protocol_id), SWIGTYPE_p_uint8_t.getCPtr(private_key), time);
        SWIGTYPE_p_netcode_server_t ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_netcode_server_t(cPtr, false);

        if (netcodePINVOKE.SWIGPendingException.Pending)
        {
            throw netcodePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_uint64_t obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 4
0
 internal static HandleRef getCPtr(SWIGTYPE_p_uint64_t obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Ejemplo n.º 5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_uint64_t obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }