We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 311b40f commit 9aa73deCopy full SHA for 9aa73de
examples/ccs/ccs_server.py
@@ -2,7 +2,9 @@
2
3
def handler(msg):
4
print("CCS Ping handler called on " + str(charm.myPe()))
5
- answer = "Hello to sender " + str(msg) + "from PE " + str(charm.myPe())
+
6
+ msg = msg.rstrip('\x00') #removes null characters from the end
7
+ answer = "Hello to sender " + str(msg) + " from PE " + str(charm.myPe()) + ".\n"
8
# send the answer back to the client
9
charm.CcsSendReply(answer)
10
0 commit comments