# IoTCommunicator.listen()

Perform the IoTCommunicator listen.

### For an overview see page Python IoTCommunicator Class

### Prototype

        listen(address, sock_params)

### Arguments

address | A string containing the interface address to listen on
sock_params | A dictionary is expected with the following keys:
"mode" | A flag indicating the socket open mode (integer)
"linger" | The interface to the SO_LINGER socket option. This option defines the timeout (in seconds) for processing queued messages when the close() is called for the socket. The default value of mco_sock_params_t::linger is -1, and such processing is done in the background. If the mco_sock_params_t::linger is >= 0, then close() will block for the specified number of seconds and then reset socket state. In particular, linger = 0 means that socket must be reset immediately, without pending in the TIME_WAIT state. (integer)
"sndbuf" | The size of the socket send buffer in bytes (integer)
"rcvbuf" | The size of the socket receive buffer in bytes (integer)
"domain" | A flag defining the socket domain (integer)

### Description

This function initiates the listen operation for an IoTCommunicator object.

### Returns

Exception | An exception is thrown with the appropriate error message