Moved raw data type handling to DataUtil.py

This commit is contained in:
Ammar Askar committed 2012-10-26 15:31:47 +05:00
1 parent 7c1d5bdc39
commit 402aa6954f
3 files changed
+346 -329

No files matched your search

+7
View File
@@ -1,6 +1,13 @@
import socket
import struct
def send00(socket, KAid):
#packet id
socket.send("\x00")
#int - keep alive id
socket.send(struct.pack('!i', KAid))
def sendHandshake(socket, username, host, port):
#packet id
socket.send("\x02")