--- a/src/sock_internal.h Sun Feb 22 08:48:21 2009 +0200
+++ b/src/sock_internal.h Sun Feb 22 10:16:28 2009 +0200
@@ -19,10 +19,16 @@
/* method table */
struct sock_stream_methods {
/* Normal read(2) */
- err_t (*read) (struct sock_stream *sock, void *buf, size_t len);
+ err_t (*read) (struct sock_stream *sock, void *buf, size_t *len);
/* Normal write(2) */
- err_t (*write) (struct sock_stream *sock, const void *buf, size_t len);
+ err_t (*write) (struct sock_stream *sock, const void *buf, size_t *len);
+
+ /* Initialize events. cb_info/cb_arg are already updated */
+ err_t (*event_init) (struct sock_stream *sock);
+
+ /* Enable events as specified */
+ err_t (*event_enable) (struct sock_stream *sock, short mask);
} methods;
};