◆ context
| void* listener_ops::context |
◆ destroy
| void(* listener_ops::destroy) (ListenerOps **listenerOpsPtr) |
Called to destroy the Listener.
- Parameters
-
| [in] | listenerOpsPtr | Double pointer to this structure |
◆ getEncapType
Returns the encapsulation type of the listener (e.g. TCP, UDP, HICN)
- Parameters
-
| [in] | ops | Pointer to this structure |
- Returns
- the listener encapsulation type
◆ getInterfaceIndex
| unsigned(* listener_ops::getInterfaceIndex) (const ListenerOps *ops) |
Returns the interface index of the listener.
- Parameters
-
| [in] | ops | Pointer to this structure |
- Returns
- the interface index of the listener
◆ getInterfaceName
| const char*(* listener_ops::getInterfaceName) (const ListenerOps *ops) |
Returns the interface name of the listener.
- Parameters
-
| [in] | ops | Pointer to this structure |
- Returns
- the interface name of the listener
◆ getListenAddress
| const Address*(* listener_ops::getListenAddress) (const ListenerOps *ops) |
Returns the address pair that defines the listener (local, remote)
- Parameters
-
| [in] | ops | Pointer to this structure |
- Returns
- the (local, remote) pair of addresses
◆ getListenerName
| const char*(* listener_ops::getListenerName) (const ListenerOps *ops) |
Returns the listener name of the listener.
- Parameters
-
| [in] | ops | Pointer to this structure |
- Returns
- the listener name of the listener
◆ getSocket
| int(* listener_ops::getSocket) (const ListenerOps *ops) |
Returns the underlying socket associated with the listener
Not all listeners are capable of returning a useful socket. In those cases, this function pointer is NULL.
TCP does not support this operation (function is NULL). UDP returns its local socket.
The caller should never close this socket, the listener will do that when its destroy method is called.
- Parameters
-
| [in] | ops | Pointer to this structure |
- Return values
-
| integer | The socket descriptor |
Example:
The documentation for this struct was generated from the following file: