Implemented sending from sockets