Name
netconn_connect() — Connect netconn to remote peer
Synopsis
err_t netconn_connect
(
struct netconn *conn
, struct ip_addr *remote_addr
, u16_t remote_port
)
;
Description
In case of UDP, sets the remote receiver as given by
remote_addr
and remote_port
of
UDP messages sent over the connection. For TCP,
netconn_connect()
opens a connection with the remote
host.
Solely for UDP, it is possible to call netconn_connect()
repeatedly to set a new remote destination to use for UDP packets, rather than
having to create and delete netconns for each destination.
2024-03-18 | LWIP Documentation Notices |