encupsule socket to SocketStream
revert wireprotocol.py but encupsle socket
send packets via method