Working bot answering PING, and its C wrapper.
This commit is contained in:
parent
462de88e8b
commit
cffeb8a355
12 changed files with 475 additions and 0 deletions
8
src/tcp.h
Normal file
8
src/tcp.h
Normal 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
|
Reference in a new issue