aboutsummaryrefslogtreecommitdiff
path: root/tcpclient.h
blob: ea02e4232ce1541e6ed1af43a1c09ecc889b2e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef tcpclient_INCLUDED
#define tcpclient_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif

//return port handle or -1 if fails
int OpenTCPPort(const char * ip_addr, int port);
int PollTCPPort(int, unsigned char *, int);
int SendTCPByte(int, unsigned char);
int SendTCPBuf(int, unsigned char *, int);
void CloseTCPport(int);


#ifdef __cplusplus
} /* extern "C" */
#endif

#endif