Created
February 18, 2015 16:07
-
-
Save japsu/ddf309dc5f7995823c39 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from straightened import TCPLineProtocol | |
protocol = TCPLineProtocol() | |
@protocol.on_line_received | |
def echo_protocol_line_received(transport, data): | |
transport.send_line(data) | |
protocol.listen(9000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment