equal
deleted
inserted
replaced
31 * Returns the socket handle. |
31 * Returns the socket handle. |
32 */ |
32 */ |
33 struct sock_stream *sock_ssl_connect (const char *host, const char *service); |
33 struct sock_stream *sock_ssl_connect (const char *host, const char *service); |
34 |
34 |
35 /* |
35 /* |
|
36 * Initialize the socket module's global state |
|
37 */ |
|
38 void sock_init (void); |
|
39 |
|
40 /* |
36 * The generic read/write API for stream sockets. |
41 * The generic read/write API for stream sockets. |
37 */ |
42 */ |
38 int sock_stream_read (struct sock_stream *sock, void *buf, size_t len); |
43 int sock_stream_read (struct sock_stream *sock, void *buf, size_t len); |
39 int sock_stream_write (struct sock_stream *sock, const void *buf, size_t len); |
44 int sock_stream_write (struct sock_stream *sock, const void *buf, size_t len); |
40 |
45 |