to differentiate the two sockets,
I'd have defined two constants SOCK_SEND and SOCK_LISTEN
so then it'd give sock[SOCK_SEND] or sock[SOCK_LISTEN] when one needs to access them (better readiness)