Name

netconn_new_with_proto_and_callback() — Create a new connection structure with a callback for a specific protocol

Synopsis

struct netconn *netconn_new_with_callback(enum netconn_type type, u16_t proto, void (*callback) (struct netconn *conn, enum netconn_evt evt, u16_t len));

Description

This function is similar to netconn_new_with_callback() except that an additional parameter proto may be used to indicate the IP protocol number to use. If proto is non-zero, it must only be used with the type set to NETCONN_RAW.

The most common use of this function is the creation of connections suitable for generating ICMP packets.