Implemented raw sockets objects

Resolves #407