mirror of
https://github.com/open-goal/jak-project
synced 2026-08-19 14:03:38 -04:00
goalc: make suggested changes, still can't reconnect properly
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
import socket
|
||||
import time
|
||||
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())
|
||||
print("...?")
|
||||
|
||||
form = "(repl-help)"
|
||||
|
||||
num_sent = clientSocket.send(b'\x0B\x00\x00\x00\x0A\x00\x00\x00' + form.encode())
|
||||
print("Sent {} bytes".format(num_sent))
|
||||
header = struct.pack('<II', len(form), 10)
|
||||
|
||||
num_sent = clientSocket.sendall(header + form.encode())
|
||||
|
||||
# this shouldn't be necessary but...this is just a test script
|
||||
# might imply something is wrong in the C++ code!
|
||||
time.sleep(1000000)
|
||||
|
||||
Reference in New Issue
Block a user