Page 1 of 1

listen( maxpend = 5 )

Posted: Wed May 15, 2024 4:19 am
by tsnelling
In the below line (from tcp.h), what is the maxpend?
Is it the limit of ports that can be configured to listen for a tcp connection?
Can i increase this value?
"inline int listen( IPADDR4 addr, WORD port, BYTE maxpend = 5 )"

Thanks,
Tim Snelling

Re: listen( maxpend = 5 )

Posted: Fri May 17, 2024 2:00 pm
by TomNB
Hi Tim,

The listen() process things one at a time. The maxpend is a queue for requests that come in; they are put in a pend queue and processed in order.