listen( maxpend = 5 )

Discussion to talk about software related topics only.
Post Reply
tsnelling
Posts: 7
Joined: Thu Dec 14, 2023 11:47 am

listen( maxpend = 5 )

Post 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
User avatar
TomNB
Posts: 552
Joined: Tue May 10, 2016 8:22 am

Re: listen( maxpend = 5 )

Post 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.
Post Reply