Source code for hio.core.tcp.tcping
# -*- encoding: utf-8 -*-
"""
hio.core.tcping Module
"""
from . import serving
[docs]class Peer(serving.Server):
"""
Nonblocking TCP Socket Peer Class.
Supports both incoming and outgoing connections.
"""
def __init__(self, **kwa):
"""
Initialization method for instance.
"""
super(Peer, self).init(**kwa)
self.oxes = odict() # outgoers indexed by ha