socket_send does not crash anymore but returns an error
The application (enb.c basically) will now monitor the socket and reconnect if it dies. See following commits.
This commit is contained in:
@@ -20,7 +20,8 @@ list *list_append(list *l, void *data);
|
||||
/* socket */
|
||||
/****************************************************************************/
|
||||
|
||||
void socket_send(int socket, void *buffer, int size);
|
||||
/* 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);
|
||||
int fullread(int fd, void *_buf, int count);
|
||||
int connect_to(char *addr, int port);
|
||||
|
||||
Reference in New Issue
Block a user