[feature/socket] add sockets functions for unix-like system for now, windows come later