I didn\'t understand anything about somaxconn in socket programming in C( Linux Ubuntu).I searched through several sites, but all those couldn\'t help me much.
l
Simply put, the backlog is the maximum number of queued connections you want on a socket.. This queue is there so you can handle a connection from a client while others wait in line, the backlog specifies how long you want this line to be. if more clients attempt to connect to your server, more than the backlog, those connections will be dropped.
SOMAXCONN
defines the maximum number you're allowed to pass to listen()
which is 128
on my system.
You can read more about it in the man page