Oh god stuff that works

This commit is contained in:
Ammar Askar committed 2012-04-15 21:49:47 +05:00
1 parent d5e726f98b
commit 1ecdf8e82f
4 files changed
+80 -74

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"))