Ok I've edited the socket module to add 2 functions ... But I've haven't test it yet, I've only check if it compile..
build for linux 1.76 ... I don't know if that work but ... that could perhaps work
I've add two function
socket_listen(...) same as socket_connect but the socket listen ( bind( for udp and tcp, + listen for tcp ). The address is still here but useless... I've hardcoded INADDR_ANY.
socket_accept(listenning socket)
Only for tcp, return a new socket with a connection attempt in the queue ...
return <0 if there is nothing in the queue ...
It's a 10 minuts try

try if you really want a socket module that listen ...

I'm not gonna to check it before this week end ^^