tcpip_device.h
00001 #ifndef TCP_IP_DEVICE_C_H
00002 #define TCP_IP_DEVICE_C_H
00003
00004
00005
00006
00007
00008
00009
00010 #include "cpp_extern_macro.h"
00011 BEGIN_C_DECLS;
00012
00013 extern int tcpip_open(const char *host, unsigned short port);
00014 extern void tcpip_close(int id);
00015 extern int tcpip_is_connected(int id);
00016 extern int tcpip_recv(int id, char *data, int size, int timeout);
00017 extern int tcpip_send(int id, const char *data, int length);
00018
00019 END_C_DECLS;
00020 #endif
00021