Archived
1
0
Fork 0

Working bot answering PING, and its C wrapper.

This commit is contained in:
Julien Dessaux 2016-08-11 13:20:39 +02:00
parent 462de88e8b
commit cffeb8a355
12 changed files with 475 additions and 0 deletions

8
src/tcp.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef _TCP_H_
#define _TCP_H_
int hostname_to_ip(const char* const hostname, char *ip);
int tcp_connect(const char* const host, const int port);
void tcp_close(const int sd);
#endif