| 79 | } |
| 80 | |
| 81 | void duk_trans_socket_finish(void) { |
| 82 | if (client_sock >= 0) { |
| 83 | (void) close(client_sock); |
| 84 | client_sock = -1; |
| 85 | } |
| 86 | if (server_sock >= 0) { |
| 87 | (void) close(server_sock); |
| 88 | server_sock = -1; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | void duk_trans_socket_waitconn(void) { |
| 93 | struct sockaddr_in addr; |