enum netconn_type netconn_type(struct netconn *conn);
enum netconn_type netconn_type
Returns the type of the connection conn. This is the same type that is given as an argument to netconn_new() (and its variants) and can be one of NETCONN_TCP, NETCONN_UDP, NETCONN_UDPLITE, NETCONN_UDPNOCHKSUM or NETCONN_RAW.
conn
NETCONN_TCP
NETCONN_UDP
NETCONN_UDPLITE
NETCONN_UDPNOCHKSUM
NETCONN_RAW