public RpcAddress() { addr = new dsn_address_t(); addr.ip = 0; addr.port = 0; addr.name = "invalid"; }
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); }
public extern static void dsn_rpc_call_one_way(dsn_address_t server, dsn_message_t request);
public extern static void dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call);
public extern static bool dsn_group_is_leader(dsn_group_t g, dsn_address_t ep);
public extern static bool dsn_group_remove(dsn_group_t g, dsn_address_t ep);
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);
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
public extern static void dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call, dsn_task_tracker_t tracker);
public extern static void dsn_msg_to_address(dsn_message_t msg, out dsn_address_t ep);
public extern static void dsn_primary_address2(out dsn_address_t addr);
public extern static void dsn_address_build(out dsn_address_t ep, string host, System.UInt16 port);
public extern static void dsn_address_get_invalid(out dsn_address_t addr);
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); }
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; }
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);
public static extern void dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call);
public static extern void dsn_address_build(out dsn_address_t ep, string host, System.UInt16 port);
public static extern void dsn_rpc_call_one_way(dsn_address_t server, dsn_message_t request);
public static extern void dsn_address_get_invalid(out dsn_address_t addr);
public extern static string dsn_address_to_string(dsn_address_t addr);
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);
public extern static void dsn_group_set_leader(dsn_group_t g, dsn_address_t ep);
public static extern void dsn_msg_to_address(dsn_message_t msg, out dsn_address_t ep);
public extern static dsn_address_t dsn_group_next(dsn_group_t g, dsn_address_t ep);
public static extern void dsn_primary_address2(out dsn_address_t addr);
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
public static extern void dsn_rpc_call(dsn_address_t server, dsn_task_t rpc_call, dsn_task_tracker_t tracker);
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);
public static extern dsn_message_t dsn_rpc_call_wait(dsn_address_t server, dsn_message_t request);
public static void primary_address(out dsn_address_t addr) { Native.dsn_primary_address2(out addr); }
public RpcAddress(dsn_address_t ad) { addr = ad; }