reading a socket does not abort anymore

fullread has been changed, so get_event too, and the callers also
for the moment the callers crash, enb.c will be a bit more clever,
the others to see...
This commit is contained in:
Cedric Roux
2016-06-05 17:39:06 +02:00
parent 9338f06e90
commit 83350a807f
6 changed files with 12 additions and 5 deletions
+1
View File
@@ -23,6 +23,7 @@ list *list_append(list *l, void *data);
/* socket_send: return 0 if okay, -1 on error */
int socket_send(int socket, void *buffer, int size);
int get_connection(char *addr, int port);
/* fullread: return length read if okay (that is: 'count'), -1 on error */
int fullread(int fd, void *_buf, int count);
int connect_to(char *addr, int port);