mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
b3c58d2247
* scripts: cleanup scripts directory some more * stash, getting there * stash again * closer! * it works! decently....cleanup time and add some extra features * minor cleanup
16 lines
320 B
Python
16 lines
320 B
Python
import socket
|
|
import struct
|
|
clientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM);
|
|
clientSocket.connect(("127.0.0.1", 8181))
|
|
print(clientSocket)
|
|
data = clientSocket.recv(1024)
|
|
print(data.decode())
|
|
|
|
form = "(:status)"
|
|
|
|
header = struct.pack('<II', len(form), 10)
|
|
|
|
clientSocket.sendall(header + form.encode())
|
|
|
|
|