~ When we get a direct connection in we set up its network address * then call handshake.c to set up the crypto state. */
| 456 | /*~ When we get a direct connection in we set up its network address |
| 457 | * then call handshake.c to set up the crypto state. */ |
| 458 | static struct io_plan *connection_in(struct io_conn *conn, |
| 459 | struct daemon *daemon) |
| 460 | { |
| 461 | struct conn_in conn_in_arg; |
| 462 | |
| 463 | if (!get_remote_address(conn, &conn_in_arg.addr)) |
| 464 | return io_close(conn); |
| 465 | |
| 466 | conn_in_arg.daemon = daemon; |
| 467 | return conn_in(conn, &conn_in_arg); |
| 468 | } |
| 469 | |
| 470 | /*~ <hello>I speak web socket</hello>. |
| 471 | * |
nothing calls this directly
no test coverage detected