| 38 | int createTCPServer(int port) { |
| 39 | int s, yes = 1; |
| 40 | struct sockaddr_in sa; |
| 41 | |
| 42 | if ((s = socket(AF_INET, SOCK_STREAM, 0)) == -1) return -1; |
| 43 | setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)); // Best effort. |
nothing calls this directly
no outgoing calls
no test coverage detected