89 */ |
89 */ |
90 err_t sock_tcp_connect_async (struct sock_stream **sock_ptr, const char *host, const char *service, |
90 err_t sock_tcp_connect_async (struct sock_stream **sock_ptr, const char *host, const char *service, |
91 sock_stream_connect_cb cb_func, void *cb_arg, struct error_info *err); |
91 sock_stream_connect_cb cb_func, void *cb_arg, struct error_info *err); |
92 |
92 |
93 /** |
93 /** |
94 * Start a non-blocking SSL connect/handshake to the given host/service. The socket will not yet be connected when the |
|
95 * function returns, but rather, the eventual redyness/failure of the connect/handshake will be indicated later using |
|
96 * the given \a cb_func. |
|
97 * |
|
98 * @param sock_ptr the new sock_stream |
|
99 * @param host the hostname to connect to |
|
100 * @param service the TCP service name (i.e. port) to connect to |
|
101 * @param err returned error info |
|
102 * |
|
103 * XXX: doesn't do any certificate verification. |
|
104 */ |
|
105 err_t sock_ssl_connect_async (struct sock_stream **sock_ptr, const char *host, const char *service, |
|
106 sock_stream_connect_cb cb_func, void *cb_arg, struct error_info *err); |
|
107 |
|
108 /** |
|
109 * A read-only "socket" based on a FIFO, this provides nonblocking read operations by re-opening the FIFO on EOF. |
94 * A read-only "socket" based on a FIFO, this provides nonblocking read operations by re-opening the FIFO on EOF. |
110 */ |
95 */ |
111 err_t fifo_open_read (struct sock_stream **stream_ptr, const char *path, struct error_info *err); |
96 err_t fifo_open_read (struct sock_stream **stream_ptr, const char *path, struct error_info *err); |
112 |
97 |
113 /** |
98 /** |