pcb to connect to the remote host indicated
ipaddr on port
sends the initial SYN segment which opens the connection.
tcp_connect() function returns immediately; it does
not wait for the connection to be properly set up. Instead, it will call the
as the fourth argument when the connection is established. If the connection
could not be properly established, either because the other host refused the
connection or because the other host didn't answer, the
function will be
called with its
err argument set accordingly.
tcp_connect() function can return
ERR_MEM if no memory is available for enqueueing the
SYN segment. If the SYN indeed was
enqueued successfully, the