I have been trying to do something like this:
.
I tried doing an TCP listener:
and a TCP sender:
The codes above are just a test if the server answers, but when i run the listener and then sender, nothing happens.
Link to the game: [Only registered and activated users can see links. Click Here To Register...]
Sourcecode of the game: [Only registered and activated users can see links. Click Here To Register...]
Edit: It seems that the sender actually works, but the server is not responding for some reason.
|
I tried doing an TCP listener:
Code:
TCPStartup() $ip = "195.143.118.113" $port = "4217" Global $TCPL = TCPListen($ip, $port) Do Global $TCPA = TCPAccept($TCPL) Until $TCPA <> -1 Do Global $TCPR = TCPRecv($TCPA, 9999999) Until $TCPR <> "" MsgBox(0, "Data", $TCPR)
Code:
TCPStartup() $ip = "195.143.118.113" $port = "4217" Global $tcp = TCPConnect($ip, $port) TCPSend($tcp, '{"type":"conn","data":{"cmd":"hello"}}')
Link to the game: [Only registered and activated users can see links. Click Here To Register...]
Sourcecode of the game: [Only registered and activated users can see links. Click Here To Register...]
Edit: It seems that the sender actually works, but the server is not responding for some reason.