13 #ifndef __ISTCPCLIENT__H__ 14 #define __ISTCPCLIENT__H__ 21 #define IS_SOCKET_DEFAULT_TIMEOUT_MS 5000 76 void HttpGet(
const string& subUrl,
const string& userAgent,
const string& userName,
const string& password);
82 bool IsOpen() {
return m_socket != 0; }
94 int SetBlocking(
bool blocking);
172 #endif // __ISTCPCLIENT__H__
NMI_API SOCKET socket(uint16 u16Domain, uint8 u8Type, uint8 u8Flags)
int ISSocketCanWrite(socket_t socket, int timeoutMilliseconds=IS_SOCKET_DEFAULT_TIMEOUT_MS)
int ISSocketSetReadTimeout(socket_t socket, int timeoutMilliseconds)
int ISSocketRead(socket_t socket, uint8_t *data, int dataLength)
void ISSocketFrameworkShutdown()
int ISSocketCanRead(socket_t socket, int timeoutMilliseconds=IS_SOCKET_DEFAULT_TIMEOUT_MS)
int ISSocketClose(socket_t &socket)
int ISSocketSetBlocking(socket_t socket, bool blocking)
int ISSocketWrite(socket_t socket, const uint8_t *data, int dataLength)
USBInterfaceDescriptor data
#define IS_SOCKET_DEFAULT_TIMEOUT_MS
void ISSocketFrameworkInitialize()