|
ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
|
Go to the source code of this file.
Data Structures | |
| struct | tcp_transport_data_t |
| TCP transport implementation data. More... | |
Functions | |
| acip_transport_t * | acip_tcp_transport_create (socket_t sockfd, crypto_context_t *crypto_ctx) |
| Create TCP transport from existing socket. | |
| void | acip_transport_destroy (acip_transport_t *transport) |
| Destroy transport and free all resources. | |
| acip_transport_t * acip_tcp_transport_create | ( | socket_t | sockfd, |
| crypto_context_t * | crypto_ctx | ||
| ) |
Create TCP transport from existing socket.
| sockfd | Connected socket descriptor |
| crypto_ctx | Optional crypto context (may be NULL) |
Definition at line 208 of file tcp/transport.c.
References acip_transport::crypto_ctx, ERROR_INVALID_PARAM, ERROR_MEMORY, acip_transport::impl_data, INVALID_SOCKET_VALUE, tcp_transport_data_t::is_connected, log_debug, acip_transport::methods, SAFE_FREE, SAFE_MALLOC, SET_ERRNO, and tcp_transport_data_t::sockfd.
Referenced by server_connection_establish(), and server_main().
| void acip_transport_destroy | ( | acip_transport_t * | transport | ) |
Destroy transport and free all resources.
| transport | Transport to destroy (may be NULL) |
Definition at line 247 of file tcp/transport.c.
References acip_transport_methods_t::close, acip_transport_methods_t::destroy_impl, acip_transport::impl_data, acip_transport_methods_t::is_connected, log_debug, acip_transport::methods, and SAFE_FREE.
Referenced by connection_context_cleanup(), server_connection_close(), server_connection_set_transport(), and server_main().