equal
deleted
inserted
replaced
31 /* Last error info */ |
31 /* Last error info */ |
32 struct error_info err; |
32 struct error_info err; |
33 }; |
33 }; |
34 |
34 |
35 #define SOCK_FROM_BASE(sock, type) ((type*) sock) |
35 #define SOCK_FROM_BASE(sock, type) ((type*) sock) |
36 #define SOCK_ERR(sock) ((sock)->err) |
36 #define SOCK_ERR(sock) (&(sock)->err) |
37 |
37 |
38 /* |
38 /* |
39 * Initialize a sock_stream with the given sock_stream_type. |
39 * Initialize a sock_stream with the given sock_stream_type. |
40 * |
40 * |
41 * The sock_stream should be initialized to zero. It is a bug to call this twice. |
41 * The sock_stream should be initialized to zero. It is a bug to call this twice. |