Constants in sockets.inc

Socket connection type (TCP/UDP)
Socket flags
Error reporting