Skip to content

Commit

Permalink
Merge pull request #46 from bobjacobsen/tcp-native
Browse files Browse the repository at this point in the history
Resolve #34, printing in TCP-native code
  • Loading branch information
bobjacobsen authored Jun 24, 2024
2 parents 94a4a6a + 8983c71 commit 3101d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example_tcp_message_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def sendToSocket(data):
# "Got {}({}) but expected str"
# .format(type(data).__name__, data)
# )
print(" SR: {}".format(data.strip()))
print(" SR: {}".format(data))
s.send(data)


Expand All @@ -76,6 +76,6 @@ def printMessage(msg):
# process resulting activity
while True:
received = s.receive()
print(" RR: {}".format(received.strip()))
print(" RR: {}".format(received))
# pass to link processor
tcpLinklayer.receiveListener(received)

0 comments on commit 3101d8a

Please sign in to comment.