pyCraft/PacketSenderManager.py
2012-04-15 21:49:47 +05:00

7 lines
179 B
Python

import socket
import struct
def send03(socket, message):
socket.send("\x03")
socket.send(struct.pack('!h', message.__len__()))
socket.send(message.encode("utf-16be"))