equal
deleted
inserted
replaced
17 */ |
17 */ |
18 struct sock_stream_type { |
18 struct sock_stream_type { |
19 /* method table */ |
19 /* method table */ |
20 struct sock_stream_methods { |
20 struct sock_stream_methods { |
21 /* Normal read(2) */ |
21 /* Normal read(2) */ |
22 err_t (*read) (struct sock_stream *sock, void *buf, size_t len); |
22 err_t (*read) (struct sock_stream *sock, void *buf, size_t *len); |
23 |
23 |
24 /* Normal write(2) */ |
24 /* Normal write(2) */ |
25 err_t (*write) (struct sock_stream *sock, const void *buf, size_t len); |
25 err_t (*write) (struct sock_stream *sock, const void *buf, size_t *len); |
|
26 |
|
27 /* Initialize events. cb_info/cb_arg are already updated */ |
|
28 err_t (*event_init) (struct sock_stream *sock); |
|
29 |
|
30 /* Enable events as specified */ |
|
31 err_t (*event_enable) (struct sock_stream *sock, short mask); |
26 |
32 |
27 } methods; |
33 } methods; |
28 }; |
34 }; |
29 |
35 |
30 /* |
36 /* |