ACKme Logo WiConnect Host Library- API Reference Guide
 
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Miscellaneous Methods

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...
 

Detailed Description

Miscellaneous socket methods.

Function Documentation

WiconnectResult wiconnect::SocketInterface::closeAllSockets ( )

Close all opened sockets.

Note
This closes all open sockets on the MODULE side. Socket objects on the HOST side will be still open until issuing a read/write command to the module using the socket handle.
Returns
Result of method. See WiconnectResult
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.

Parameters
[out]socketWiconnectSocket object of opened connection.
[in]typeThe SocketType of connection to open
[in]hostThe host/IP address of the remote server
[in]remortPortThe port of the remote server
[in]localPortThe port of the module's side of the connection
[in]argsDepedent on the connection type
[in]irqPinData available external interrupt pin. See registerSocketIrqHandler() for more info
Returns
Result of method. See WiconnectResult