diff options
| author | Oskari Timperi <oskari.timperi@optofidelity.com> | 2017-04-11 09:38:28 +0300 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@optofidelity.com> | 2017-04-11 09:38:28 +0300 |
| commit | c576063923d927d1f8c8d5d3acf1b2eee18297db (patch) | |
| tree | 193d2c8641de2a37fdb11b4f5725676fac383ccb /tcpclient.h | |
| parent | 6728ffdb6f8253a23dc600a8dc810bbc94fd69ab (diff) | |
| download | SimpleMotionV2-c576063923d927d1f8c8d5d3acf1b2eee18297db.tar.gz SimpleMotionV2-c576063923d927d1f8c8d5d3acf1b2eee18297db.zip | |
Add TCP/IP support to busdevice.cfeature/tcpip
Diffstat (limited to 'tcpclient.h')
| -rw-r--r-- | tcpclient.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tcpclient.h b/tcpclient.h new file mode 100644 index 0000000..ea02e42 --- /dev/null +++ b/tcpclient.h @@ -0,0 +1,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 + + |
