Send string with newline characters(CRLF) to socket.
- Parameters:
-
| sockfd | socket descriptor |
| str | string pointer |
- Returns:
- the number of bytes sent on success, or -1 if an error(ex:socket closed) occurred.
- Since:
- 8.1R
Definition at line 275 of file qSocket.c.