Go to the source code of this file.
Functions | |
| int | open_tcp_connexion (struct sockaddr_in *tcp_add, char *tcp_host, int tcp_port, long tt_sec, long tt_micro, unsigned long int *ellapsed_time) |
| Open a TCP connexion to a remote server. | |
| void | Get_Sock_Adress (char *Machine_serveur, int port_serveur, struct sockaddr_in *TCP_address) |
| Get the Internet address of a service. | |
| int | read_from_socket (int sockfd, char *buffer, size_t buffer_size, size_t *extracted, long tt_sec, long tt_micro, unsigned long int *ellapsed_time) |
| Read data from an open socket descriptor (read timeout in micro seconds + ellapsed time in milli seconds). | |
| int | read_all_socket (int sockfd, char **buffer, long tt_sec, long tt_micro, unsigned long int *ellapsed_time, unsigned long int *size) |
| Read from a socket, until the connexion is closed. | |
Definition in file sockets.c.
|
||||||||||||||||
|
Get the Internet address of a service.
Definition at line 141 of file sockets.c. Referenced by open_tcp_connexion(). |
|
||||||||||||||||||||||||||||
|
Open a TCP connexion to a remote server.
Definition at line 44 of file sockets.c. References Get_Sock_Adress(), SCK_CHRONO_ERROR, SCK_CONNECT_ERROR, SCK_GET_IP_ERROR, SCK_TIMEOUT_CONNECT, and SCK_TIMER_ERROR. Referenced by client_smtp_connect(). |
|
||||||||||||||||||||||||||||
|
Read from a socket, until the connexion is closed.
Definition at line 259 of file sockets.c. References read_from_socket(), SCK_BUFFER_INIT_SIZE, SCK_READ_NO_MEM, and SCK_READ_OK. |
|
||||||||||||||||||||||||||||||||
|
Read data from an open socket descriptor (read timeout in micro seconds + ellapsed time in milli seconds).
Definition at line 167 of file sockets.c. References SCK_READ_CHRONO_ERROR, SCK_READ_OK, SCK_READ_READ_ERROR, SCK_READ_TIMEOUT, and SCK_READ_TIMER_ERROR. Referenced by client_smtp_connect(), read_all_socket(), and smtp_send_email(). |
1.3-rc1