'Helper method to wrap a standard python socket.socket with the
tube APIs.
Arguments:
socket: Instance of socket.socket
Returns:
Instance of pwnlib.tubes.remote.remote.'

@classmethod
def fromsocket(cls, socket):

    s = socket
    (host, port) = s.getpeername()
    return remote(host, port, fam=s.family, typ=s.type, sock=s)
