Implement socket server subparse

This commit is contained in:
nemunaire 2016-07-08 22:38:25 +02:00
parent 449cb684f9
commit 40fc84fcec

View File

@ -70,6 +70,14 @@ class _Socket(AbstractServer):
yield message.Command(cmd=args[0], args=args[1:], server=self.fileno(), to=["you"], frm="you")
def subparse(self, orig, cnt):
for m in self.parse(cnt):
m.to = orig.to
m.frm = orig.frm
m.date = orig.date
yield m
class _SocketServer(_Socket):
def __init__(self, host, port, bind=None, **kwargs):