diff options
| author | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-05-29 22:34:15 +0300 |
|---|---|---|
| committer | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-05-29 22:34:15 +0300 |
| commit | 67db22dfed3306a6aaf2a9ba6fc814c8b4163ece (patch) | |
| tree | 2ccd75a64a4d25b3b2b1964157d8af35940a99ec /tcpclient.h | |
| parent | f065efc4607c8adcc31266748bd1e20ca39090b9 (diff) | |
| parent | a60052b1d6a620e64d300f07e9edd26a963cd889 (diff) | |
| download | SimpleMotionV2-67db22dfed3306a6aaf2a9ba6fc814c8b4163ece.tar.gz SimpleMotionV2-67db22dfed3306a6aaf2a9ba6fc814c8b4163ece.zip | |
Merge branch 'develop': Summary of changes:
-Added communication TCP IP port
-Added device deployment API
-Added buffered motion API
-New version of simplemotion_defs.h
-Various fixes & MacOS support
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 + + |
