First commit
This commit is contained in:
commit
0a28bac78a
37 changed files with 1963 additions and 0 deletions
15
tcpcli.h
Normal file
15
tcpcli.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef _TCPCLI_H_
|
||||
#define _TCPCLI_H_
|
||||
|
||||
#include <string.h>
|
||||
#include <netdb.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
int tcp_connect(const char *host, const char *port);
|
||||
void tcp_close(int sock);
|
||||
int tcp_send(int sock, const char *str);
|
||||
int tcp_receive(int sock, char *buffer, unsigned int size);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue