Пример #1
0
 private static extern int __dxf_create_connection(
     string address,
     dxf_conn_termination_notifier_t notifier,
     dxf_conn_status_notifier_t conn_status_notifier,
     dxf_socket_thread_creation_notifier_t stcn,
     dxf_socket_thread_destruction_notifier_t stdn,
     IntPtr user_data,
     out IntPtr connection);
Пример #2
0
 /*
  *  Creates connection with the specified parameters and token authorization.
  *
  *  address - the single address: "host:port" or just "host"
  *            address with credentials: "host:port[username=xxx,password=yyy]"
  *            multiple addresses: "(host1:port1)(host2)(host3:port3[username=xxx,password=yyy])"
  *            the data from file: "/path/to/file" on *nix and "drive:\path\to\file" on Windows
  *  token - the authorization token;
  *  notifier - the callback to inform the client side that the connection has stumbled upon and error and will go reconnecting
  *  conn_status_notifier - the callback to inform the client side that the connection status has changed
  *  stcn - the callback for informing the client side about the socket thread creation;
  *         may be set to NULL if no specific action is required to perform on the client side on a new thread creation
  *  shdn - the callback for informing the client side about the socket thread destruction;
  *         may be set to NULL if no specific action is required to perform on the client side on a thread destruction;
  *  user_data - the user defined value passed to the termination notifier callback along with the connection handle; may be set
  *              to whatever value;
  *  OUT connection - the handle of the created connection.
  *
  * Note: the token data from argument have a higher priority than address credentials.
  */
 internal abstract int dxf_create_connection_auth_bearer(string address,
                                                         string token,
                                                         dxf_conn_termination_notifier_t notifier,
                                                         dxf_conn_status_notifier_t conn_status_notifier,
                                                         dxf_socket_thread_creation_notifier_t stcn,
                                                         dxf_socket_thread_destruction_notifier_t stdn,
                                                         IntPtr user_data,
                                                         out IntPtr connection);
Пример #3
0
 internal override int dxf_create_connection(
     string address,
     dxf_conn_termination_notifier_t notifier,
     dxf_conn_status_notifier_t conn_status_notifier,
     dxf_socket_thread_creation_notifier_t stcn,
     dxf_socket_thread_destruction_notifier_t stdn,
     IntPtr user_data,
     out IntPtr connection)
 {
     return(__dxf_create_connection(address, notifier, conn_status_notifier, stcn, stdn, user_data, out connection));
 }