|
Tor 0.4.9.8
|
Declarations for types used throughout the Tor networking system. More...
#include "orconfig.h"Go to the source code of this file.
Macros | |
| #define | tor_socket_t int |
| #define | TOR_SOCKET_T_FORMAT "%d" |
| #define | SOCKET_OK(s) |
| #define | TOR_INVALID_SOCKET (-1) |
Typedefs | |
| typedef int | socklen_t |
Declarations for types used throughout the Tor networking system.
Definition in file nettypes.h.
| #define SOCKET_OK | ( | s | ) |
Macro: true iff 's' is a possible value for a valid initialized socket.
Definition at line 39 of file nettypes.h.
Referenced by assert_connection_ok(), buf_flush_to_fd(), buf_read_from_fd(), conn_close_if_marked(), connection_add_impl(), connection_close_immediate(), connection_connect_sockaddr(), connection_count_moribund(), connection_free_minimal(), connection_handle_listener_read(), connection_handle_write_impl(), connection_link_connections(), connection_listener_new(), control_connection_add_local_fd(), dns_cancel_pending_resolve(), dns_resolve_impl(), dnsserv_configure_listener(), getinfo_helper_listeners(), pick_oos_victims(), purge_expired_resolves(), tor_accept_socket_with_extensions(), tor_main_configuration_free(), tor_main_configuration_setup_control_socket(), tor_open_socket_with_extensions(), tor_socketpair(), tor_tls_new(), and tor_tls_release_socket().
| #define TOR_INVALID_SOCKET (-1) |
Error/uninitialized value for a tor_socket_t.
Definition at line 41 of file nettypes.h.
Referenced by alert_sockets_create(), connection_close_immediate(), connection_free_minimal(), connection_init(), connection_listener_new(), tor_accept_socket_with_extensions(), tor_main_configuration_new(), and tor_open_socket_with_extensions().
| #define tor_socket_t int |
Type used for a network socket.
Definition at line 36 of file nettypes.h.
Referenced by alert_sockets_create(), connection_connect_sockaddr(), connection_handle_listener_read(), connection_listener_new(), network_init(), options_act(), tor_accept_socket_with_extensions(), tor_main_configuration_setup_control_socket(), tor_open_socket_with_extensions(), and tor_tls_release_socket().
| #define TOR_SOCKET_T_FORMAT "%d" |
Definition at line 37 of file nettypes.h.
| typedef int socklen_t |
Definition at line 23 of file nettypes.h.