Moved networking stuff to network package

Fixed message duping bug
This commit is contained in:
Ammar Askar committed 2012-07-18 15:45:25 +01:00
1 parent 2139c7cbd0
commit a3a442db3a
6 files changed
+2 -5

No files matched your search

+7
View File
@@ -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"))