eCosPro® Reference Manual
Prev |  | Next

# netconn_new()

## Name

netconn_new() -- Create a new connection structure

## Synopsis

``struct netconn *netconn_new`(enum netconn_type type);`

## Description

Creates a new connection abstraction structure. The argument usually one of either `NETCONN_TCP` or `NETCONN_UDP`, yielding either a TCP or a UDP connection. No connection is established by the call to this function and no data is sent over the network.

For more advanced use, it is also possible to specify different connection types: `NETCONN_UDPLITE`, `NETCONN_UDPNOCHKSUM` or `NETCONN_RAW`.

Prev | Home | Next
netbuf_fromport() | Up | netconn_new_with_callback()