Ejemplo n.º 1
0
Archivo: Utils.cs Proyecto: whiker/rDSN
 public RpcAddress()
 {
     addr      = new dsn_address_t();
     addr.ip   = 0;
     addr.port = 0;
     addr.name = "invalid";
 }
Ejemplo n.º 2
0
        public static dsn_task_t CopyRemoteDirectory(
            dsn_address_t remote,
            string source_dir,
            string dest_dir,
            bool overwrite,
            TaskCode callbackCode,
            Servicelet callbackOwner,
            AioHandler callback,
            int hash = 0
            )
        {
            int        idx  = GlobalInterOpLookupTable.Put(callback);
            dsn_task_t task = Native.dsn_file_create_aio_task(callbackCode, _c_aio_handler_holder, (IntPtr)idx, hash);

            Native.dsn_file_copy_remote_directory(remote, source_dir, dest_dir, overwrite, task, callbackOwner != null ? callbackOwner.tracker() : IntPtr.Zero);
            return(task);
        }
Ejemplo n.º 3
0
 public extern static void          dsn_rpc_call_one_way(dsn_address_t server, dsn_message_t request);
Ejemplo n.º 4
0
 public extern static void          dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call);
Ejemplo n.º 5
0
 public extern static bool dsn_group_is_leader(dsn_group_t g, dsn_address_t ep);
Ejemplo n.º 6
0
 public extern static bool dsn_group_remove(dsn_group_t g, dsn_address_t ep);
Ejemplo n.º 7
0
 public static extern void         dsn_file_copy_remote_files(dsn_address_t remote, string source_dir, string[] source_files, string dest_dir, bool overwrite, dsn_task_t cb);
Ejemplo n.º 8
0
 public static extern dsn_message_t dsn_rpc_call_wait(dsn_address_t server, dsn_message_t request); // returned msg must be explicitly msg_release_ref
Ejemplo n.º 9
0
 public extern static void          dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call, dsn_task_tracker_t tracker);
Ejemplo n.º 10
0
 public extern static void          dsn_msg_to_address(dsn_message_t msg, out dsn_address_t ep);
Ejemplo n.º 11
0
 public extern static void          dsn_primary_address2(out dsn_address_t addr);
Ejemplo n.º 12
0
 public extern static void          dsn_address_build(out dsn_address_t ep, string host, System.UInt16 port);
Ejemplo n.º 13
0
 public extern static void          dsn_address_get_invalid(out dsn_address_t addr);
Ejemplo n.º 14
0
 public RpcAddress()
 {
     addr = new dsn_address_t();
     addr.ip = 0;
     addr.port = 0;
     addr.name = "invalid";
 }
Ejemplo n.º 15
0
 public static SafeTaskHandle CopyRemoteFiles(
     dsn_address_t remote,
     string source_dir,
     string[] files,
     string dest_dir,
     bool overwrite, 
     TaskCode callbackCode,
     Clientlet callbackOwner,
     AioHandler callback,
     int hash = 0
     )
 {
     int idx = GlobalInterOpLookupTable.Put(callback);
     dsn_task_t task = Native.dsn_file_create_aio_task(callbackCode, _c_aio_handler_holder, (IntPtr)idx, hash, callbackOwner != null ? callbackOwner.tracker() : IntPtr.Zero);
     Native.dsn_file_copy_remote_files(remote, source_dir, files, dest_dir, overwrite, task);
     return new SafeTaskHandle(task, idx);
 }
Ejemplo n.º 16
0
 public static dsn_task_t CopyRemoteDirectory(
     dsn_address_t remote,
     string source_dir,
     string dest_dir,
     bool overwrite,
     TaskCode callbackCode,
     Servicelet callbackOwner,
     AioHandler callback,
     int hash = 0
     )
 {
     int idx = GlobalInterOpLookupTable.Put(callback);
     dsn_task_t task = Native.dsn_file_create_aio_task(callbackCode, _c_aio_handler_holder, (IntPtr)idx, hash);
     Native.dsn_file_copy_remote_directory(remote, source_dir, dest_dir, overwrite, task, callbackOwner != null ? callbackOwner.tracker() : IntPtr.Zero);
     return task;
 }
Ejemplo n.º 17
0
 public extern static void         dsn_file_copy_remote_directory(dsn_address_t remote, string source_dir, string dest_dir, bool overwrite, dsn_task_t cb, dsn_task_tracker_t tracker);
Ejemplo n.º 18
0
 public static extern void          dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call);
Ejemplo n.º 19
0
 public static extern void dsn_address_build(out dsn_address_t ep, string host, System.UInt16 port);
Ejemplo n.º 20
0
 public static extern void          dsn_rpc_call_one_way(dsn_address_t server, dsn_message_t request);
Ejemplo n.º 21
0
 public static extern void dsn_address_get_invalid(out dsn_address_t addr);
Ejemplo n.º 22
0
 public extern static string dsn_address_to_string(dsn_address_t addr);
Ejemplo n.º 23
0
 public static extern void dsn_file_copy_remote_directory(dsn_address_t remote, string source_dir, string dest_dir, bool overwrite, dsn_task_t cb, dsn_task_tracker_t tracker);
Ejemplo n.º 24
0
 public extern static void dsn_group_set_leader(dsn_group_t g, dsn_address_t ep);
Ejemplo n.º 25
0
 public static extern void dsn_msg_to_address(dsn_message_t msg, out dsn_address_t ep);
Ejemplo n.º 26
0
 public extern static dsn_address_t dsn_group_next(dsn_group_t g, dsn_address_t ep);
Ejemplo n.º 27
0
 public static extern void dsn_primary_address2(out dsn_address_t addr);
Ejemplo n.º 28
0
 public extern static dsn_message_t dsn_rpc_call_wait(dsn_address_t server, dsn_message_t request); // returned msg must be explicitly msg_release_ref
Ejemplo n.º 29
0
 public static extern void dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call, dsn_task_tracker_t tracker);
Ejemplo n.º 30
0
 public extern static void         dsn_file_copy_remote_files(dsn_address_t remote, string source_dir, string[] source_files, string dest_dir, bool overwrite, dsn_task_t cb);
Ejemplo n.º 31
0
 public static extern dsn_message_t dsn_rpc_call_wait(dsn_address_t server, dsn_message_t request);
Ejemplo n.º 32
0
 public static void primary_address(out dsn_address_t addr)
 {
     Native.dsn_primary_address2(out addr);
 }
Ejemplo n.º 33
0
 public static void primary_address(out dsn_address_t addr)
 {
     Native.dsn_primary_address2(out addr);
 }
Ejemplo n.º 34
0
 public RpcAddress(dsn_address_t ad)
 {
     addr = ad;
 }
Ejemplo n.º 35
0
Archivo: Utils.cs Proyecto: whiker/rDSN
 public RpcAddress(dsn_address_t ad)
 {
     addr = ad;
 }