File tcp.c¶
FileList > connection > tcp.c
Go to the source code of this file
#include "config.h"#include <netdb.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <time.h>#include <signal.h>#include <unistd.h>#include <fcntl.h>#include <sys/types.h>#include <sys/time.h>#include <sys/param.h>#include <sys/socket.h>#include <netinet/in.h>#include <netinet/ip.h>#include <netinet/ip_icmp.h>#include <arpa/inet.h>#include <sys/uio.h>#include <sys/un.h>#include <sys/ioctl.h>#include <netinet/tcp.h>#include <assert.h>#include "porting.h"#include "connection_error.h"#include "connection_sr.h"#include "error_manager.h"#include "system_parameter.h"#include "environment_variable.h"#include "tcp.h"#include "host_lookup.h"#include "memory_wrapper.hpp"
Public Static Attributes¶
| Type | Name |
|---|---|
| const int | css_Maximum_server_count = 1000 |
Public Functions¶
Public Static Functions¶
| Type | Name |
|---|---|
| int | css_fd_error (SOCKET fd) |
| int | css_sockaddr (const char * host, int port, struct sockaddr * saddr, socklen_t * slen) |
| void | css_sockopt (SOCKET sd) |
| int | in_cksum (u_short * addr, int len) |
Macros¶
| Type | Name |
|---|---|
| define | CONTROLLEN ([**sizeof**](broker__monitor_8c.md#function-timeout)([**struct**](broker__monitor_8c.md#function-timeout) [**cmsghdr**](broker__monitor_8c.md#function-timeout)) + [**sizeof**](broker__monitor_8c.md#function-timeout)([**int**](broker__monitor_8c.md#function-timeout))) |
| define | HOST_ID_ARRAY_SIZE 8 /\* size [**of**](broker__monitor_8c.md#function-timeout) [**the**](broker__monitor_8c.md#function-timeout) host\_id string \*/ |
| define | INADDR_NONE 0xffffffff |
| define | SET_NONBLOCKING (fd) /* multi line expression */ |
| define | SET_NONBLOCKING (fd) /* multi line expression */ |
| define | TCP_MIN_NUM_RETRIES 3 |
Public Static Attributes Documentation¶
variable css_Maximum_server_count¶
Public Functions Documentation¶
function css_close_server_connection_socket¶
function css_fd_down¶
function css_get_master_domain_path¶
function css_get_max_socket_fds¶
function css_get_peer_name¶
function css_get_sock_name¶
function css_gethostid¶
function css_gethostname¶
function css_hostname_to_ip¶
function css_master_accept¶
function css_open_new_socket_from_master¶
function css_open_server_connection_socket¶
function css_peer_alive¶
function css_ping¶
function css_server_accept¶
function css_shutdown_socket¶
function css_tcp_client_open¶
function css_tcp_client_open_with_retry¶
function css_tcp_client_open_with_timeout¶
function css_tcp_listen_server_datagram¶
function css_tcp_master_datagram¶
function css_tcp_master_open¶
function css_tcp_setup_server_datagram¶
function css_transfer_fd¶
bool css_transfer_fd (
SOCKET server_fd,
SOCKET client_fd,
unsigned short rid,
CSS_SERVER_REQUEST request_for_server
)
Public Static Functions Documentation¶
function css_fd_error¶
function css_sockaddr¶
function css_sockopt¶
function in_cksum¶
Macro Definition Documentation¶
define CONTROLLEN¶
define HOST_ID_ARRAY_SIZE¶
define INADDR_NONE¶
define SET_NONBLOCKING¶
define SET_NONBLOCKING¶
define TCP_MIN_NUM_RETRIES¶
The documentation for this class was generated from the following file cubrid/src/connection/tcp.c