template<typename Port, typename Connection = typename Port::template connection<connection, allocator<uint8_t>>>
port class
Template parameters | |
---|---|
Port | The port base class to extend. |
Connection | The connection class to create. |
Contents
Port class for TCP connections. It will accept incoming connections and create a new instance of Connection for each.
Constructors, destructors, conversion operators
-
template<typename... TN>port(int port, const ip_addr_t* ipaddr, TN && ... args)
Public functions
Function documentation
template<typenamePort, typenameConnection>
template<typename... TN>
lwip:: tcp:: port<Port, Connection>:: port(int port,
const ip_addr_t* ipaddr,
TN && ... args)
Open a port for the given ip and port.
template<typenamePort, typenameConnection>
void lwip:: tcp:: port<Port, Connection>:: bind(int port,
const ip_addr_t* ipaddr)
Binds this port to the given ip and port.
template<typenamePort, typenameConnection>
void lwip:: tcp:: port<Port, Connection>:: close()
Close the listening port. Active connection which have already been accepted will not be closed.