TCP connection setup

Table of Contents
tcp_new() -- Create a new TCP PCB
tcp_bind() -- Bind PCB to local IP address and port
tcp_listen() -- Make PCB listen for incoming connections
tcp_accept() -- Set callback used for new incoming connections
tcp_connect() -- Open connection to remote host

The functions used for setting up connections are similar to those of the sequential API and of the BSD socket API. A new TCP connection identifier (i.e., a protocol control block - PCB) is created with the tcp_new() function. This PCB can then be either set to listen for new incoming connections or be explicitly connected to another host.

2017-02-09
Documentation license for this page: eCosPro License