| 151 | } |
| 152 | |
| 153 | void CloseWebSocket(int client_fd) { |
| 154 | printf("Closing WebSocket connection %d\n", client_fd); |
| 155 | CloseAllSocketsByConnection(client_fd); |
| 156 | shutdown(client_fd, SHUTDOWN_BIDIRECTIONAL); |
| 157 | CLOSE_SOCKET(client_fd); |
| 158 | } |
| 159 | |
| 160 | const char *WebSocketOpcodeToString(int opcode) { |
| 161 | static const char *opcodes[] = { |
no test coverage detected