#include <errno.h>#include <netinet/in_systm.h>#include <netinet/in.h>#include <netinet/ip.h>#include <netinet/tcp.h>Include dependency graph for my_net.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | in_addr_t uint32 |
| #define | INADDR_NONE -1 |
| #define | GETHOSTBYNAME_BUFF_SIZE 2048 |
Functions | |
| void | my_inet_ntoa (struct in_addr in, char *buf) |
| hostent * | my_gethostbyname_r (const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop) |
| void | my_gethostbyname_r_free () |
| #define GETHOSTBYNAME_BUFF_SIZE 2048 |
Definition at line 111 of file my_net.h.
Referenced by CLI_MYSQL_REAL_CONNECT(), ip_to_hostname(), mysql_manager_connect(), and Ndb_getInAddr().
| #define in_addr_t uint32 |
Definition at line 66 of file my_net.h.
Referenced by CLI_MYSQL_REAL_CONNECT(), main(), and mysql_manager_connect().
| #define INADDR_NONE -1 |
Definition at line 71 of file my_net.h.
Referenced by CLI_MYSQL_REAL_CONNECT(), Listener_thread::create_tcp_socket(), get_one_option(), mysql_manager_connect(), and Ndb_getInAddr().
| struct hostent* my_gethostbyname_r | ( | const char * | name, | |
| struct hostent * | result, | |||
| char * | buffer, | |||
| int | buflen, | |||
| int * | h_errnop | |||
| ) |
Definition at line 94 of file my_gethostbyname.c.
References h_errno, and pthread_mutex_lock.
Referenced by CLI_MYSQL_REAL_CONNECT(), ip_to_hostname(), mysql_manager_connect(), and Ndb_getInAddr().
00097 { 00098 struct hostent *hp; 00099 pthread_mutex_lock(&LOCK_gethostbyname_r); 00100 hp= gethostbyname(name); 00101 *h_errnop= h_errno; 00102 return hp; 00103 }
Here is the caller graph for this function:

| void my_gethostbyname_r_free | ( | ) |
Definition at line 105 of file my_gethostbyname.c.
References pthread_mutex_unlock.
Referenced by CLI_MYSQL_REAL_CONNECT(), ip_to_hostname(), mysql_manager_connect(), and Ndb_getInAddr().
00106 { 00107 pthread_mutex_unlock(&LOCK_gethostbyname_r); 00108 }
Here is the caller graph for this function:

| void my_inet_ntoa | ( | struct in_addr | in, | |
| char * | buf | |||
| ) |
Definition at line 36 of file my_net.c.
References pthread_mutex_lock, pthread_mutex_unlock, and strmov().
Referenced by vio_peer_addr().
00037 { 00038 char *ptr; 00039 pthread_mutex_lock(&THR_LOCK_net); 00040 ptr=inet_ntoa(in); 00041 strmov(buf,ptr); 00042 pthread_mutex_unlock(&THR_LOCK_net); 00043 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

