'Initialize.'

def __init__(self, reactor):

    self.reactor = reactor
    server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    client.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
    server.bind(('127.0.0.1', 0))
    server.listen(1)
    client.connect(server.getsockname())
    (reader, clientaddr) = server.accept()
    client.setblocking(0)
    reader.setblocking(0)
    self.r = reader
    self.w = client
    self.fileno = self.r.fileno
