-------------------------------------------------------------------------*\ * Creates and sets up a socket \*-------------------------------------------------------------------------*/
| 111 | * Creates and sets up a socket |
| 112 | \*-------------------------------------------------------------------------*/ |
| 113 | int socket_create(p_socket ps, int domain, int type, int protocol) { |
| 114 | *ps = socket(domain, type, protocol); |
| 115 | if (*ps != SOCKET_INVALID) return IO_DONE; |
| 116 | else return WSAGetLastError(); |
| 117 | } |
| 118 | |
| 119 | /*-------------------------------------------------------------------------*\ |
| 120 | * Connects or returns error message |
no outgoing calls
no test coverage detected