diff options
| author | Tero Kontkanen <tero.k@granitedevices.fi> | 2017-05-08 18:29:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-08 18:29:50 +0300 |
| commit | 191597349718a006ec5c5e22ce19d57f52332c63 (patch) | |
| tree | 9a06207dbc52473661e3f50cd83eb28a763af8da /tcpclient.h | |
| parent | 00d629096568d735ba587931a1ff0ebcb27e434d (diff) | |
| parent | c576063923d927d1f8c8d5d3acf1b2eee18297db (diff) | |
| download | SimpleMotionV2-191597349718a006ec5c5e22ce19d57f52332c63.tar.gz SimpleMotionV2-191597349718a006ec5c5e22ce19d57f52332c63.zip | |
Merge pull request #3 from oswjk/feature/tcpip
Add TCP/IP support to busdevice.c
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 + + |
