src/server/util/io.c

changeset 25
5dee29c7c530
parent 23
a2c8fc23c90e
child 32
ebba53de8b18
equal deleted inserted replaced
24:1a7853a4257e 25:5dee29c7c530
64 NetIOStream *st = malloc(sizeof(NetIOStream)); 64 NetIOStream *st = malloc(sizeof(NetIOStream));
65 st->st = net_io_funcs; 65 st->st = net_io_funcs;
66 st->fd = fd; 66 st->fd = fd;
67 st->max_read = 0; 67 st->max_read = 0;
68 st->rd = 0; 68 st->rd = 0;
69 return (IOStream*)st;
69 } 70 }
70 71
71 ssize_t net_stream_write(IOStream *st, void *buf, size_t nbytes) { 72 ssize_t net_stream_write(IOStream *st, void *buf, size_t nbytes) {
72 // TODO: implement 73 // TODO: implement
73 } 74 }

mercurial