This commit is contained in:
aozhiwei 2020-06-17 14:12:23 +08:00
parent 7b7b1d9674
commit 1675abc106
2 changed files with 7 additions and 7 deletions

View File

@ -85,14 +85,14 @@ class VirtualClient(object):
def onReceiveUserPacket(self, conn, msgid, msgbody):
try:
#print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'))
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'), msgid)
msg = getSMMsg(msgid)
ret = msg.ParseFromString(msgbody)
#print(len(msgbody))
#print(time.time(), time.strftime('[%H:%M:%S]'), msg.DESCRIPTOR.name + '{')
#print(str(msg), end='')
#print('}')
#print('')
print(len(msgbody))
print(time.time(), time.strftime('[%H:%M:%S]'), msg.DESCRIPTOR.name + '{')
print(str(msg), end='')
print('}')
print('')
except Exception as e:
print('onReceiveUserPacket', e)

@ -1 +1 @@
Subproject commit a24a743b051656e599f0939a49fed3847ed17206
Subproject commit 2cd0d756d8b4314dd261c1b4a10036447b3da358