![]() |
WiConnect Host Library- API Reference Guide | ||
Miscellaneous socket methods. More...
Functions | |
WiconnectResult | wiconnect::SocketInterface::closeAllSockets () |
Close all opened sockets. More... | |
WiconnectResult | wiconnect::SocketInterface::connect (WiconnectSocket &socket, SocketType type, const char *host, uint16_t remortPort, uint16_t localPort, const void *args) |
Connect to remote server. More... | |
Miscellaneous socket methods.
WiconnectResult wiconnect::SocketInterface::closeAllSockets | ( | ) |
Close all opened sockets.
WiconnectResult wiconnect::SocketInterface::connect | ( | WiconnectSocket & | socket, |
SocketType | type, | ||
const char * | host, | ||
uint16_t | remortPort, | ||
uint16_t | localPort, | ||
const void * | args | ||
) |
Connect to remote server.
This is the base method used by all the other connect methods.
[out] | socket | WiconnectSocket object of opened connection. |
[in] | type | The SocketType of connection to open |
[in] | host | The host/IP address of the remote server |
[in] | remortPort | The port of the remote server |
[in] | localPort | The port of the module's side of the connection |
[in] | args | Depedent on the connection type |
[in] | irqPin | Data available external interrupt pin. See registerSocketIrqHandler() for more info |