Moved networking stuff to network package
Fixed message duping bug
This commit is contained in:
1 parent
2139c7cbd0
commit
a3a442db3a
6 files changed
+2
-5
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import socket
|
||||
import struct
|
||||
|
||||
def send03(socket, message):
|
||||
socket.send("\x03")
|
||||
socket.send(struct.pack('!h', message.__len__()))
|
||||
socket.send(message.encode("utf-16be"))
|
||||
Reference in new issue
Block a user