Skip to content

Commit

Permalink
ioworker: Add RecocoServerWorker
Browse files Browse the repository at this point in the history
It's just a class which inherits both TCPServerWorker and RecocoIOWorker.
It turns out this is useful on its own and there's often no need to
further subclass it, so we might as well include it ourselves.
  • Loading branch information
MurphyMc committed Oct 7, 2013
1 parent 6097b4a commit 3b4581f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pox/lib/ioworker/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ def _do_accept (self, loop, socket):
return out


class RecocoServerWorker (TCPServerWorker, RecocoIOWorker):
"""
Recoco TCP server worker
"""
pass


class PersistentIOWorker (RecocoIOWorker, LoggerBase):
"""
An IOWorker which opens a duplicate of itself when it closes
Expand Down

0 comments on commit 3b4581f

Please sign in to comment.