19.04.2011, 09:05
Try using socket_send in the callback which is called once you have connected, so:
I don't think you can just send "yo" though.
pawn Код:
public OnSocketConnect(address[], port) {
if(strcmp(address, "127.0.0.1") != 0) // not a local connection!
return socket_close();
socket_send("yo");
return 1;
}