project_files/frontlib/socket.h
changeset 7177 bf6cf4dd847a
parent 7175 038e3415100a
child 7224 5143861c83bd
equal deleted inserted replaced
7175:038e3415100a 7177:bf6cf4dd847a
    60  * Returns the ammount of data received, 0 if there was nothing to receive,
    60  * Returns the ammount of data received, 0 if there was nothing to receive,
    61  * or a negative number if the connection was closed or an error occurred.
    61  * or a negative number if the connection was closed or an error occurred.
    62  */
    62  */
    63 int flib_socket_nbrecv(flib_tcpsocket sock, void *data, int maxlen);
    63 int flib_socket_nbrecv(flib_tcpsocket sock, void *data, int maxlen);
    64 
    64 
    65 int flib_socket_send(flib_tcpsocket sock, void *data, int len);
    65 int flib_socket_send(flib_tcpsocket sock, const void *data, int len);
    66 
    66 
    67 #endif /* SOCKET_H_ */
    67 #endif /* SOCKET_H_ */