Files
MaxScale/maxscale-system-test/get_my_ip.h
Niclas Antti c447e5cf15 Uncrustify maxscale
See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
2018-09-09 22:26:19 +03:00

14 lines
429 B
C

#ifndef GET_MY_IP_H
#define GET_MY_IP_H
/**
* @brief get_my_ip Get IP address of machine where this code is executed as it is visible from remote machine
* Connects to DNS port 53 of remote machine and gets own IP from socket info
* @param remote_ip IP of remote machine
* @param my_ip Pointer to result (own IP string)
* @return 0 in case of success
*/
int get_my_ip(char* remote_ip, char* my_ip);
#endif // GET_MY_IP_H