Moved raw data type handling to DataUtil.py
This commit is contained in:
1 parent
7c1d5bdc39
commit
402aa6954f
3 files changed
+346
-329
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user