Thread: TSockets
View Single Post
  #1  
Old 04-09-2012, 09:06 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
TSockets

Hello, I am having a little trouble connecting a TSocket.
Each time I try I get this error.

Script connection to http://wr3ckless.net:0 is not allowed, blocking.

Maybe I am doing something wrong?
My ultimate goal is to make the GServer listen on a host/port, in which it allows me to send data from a webserver to to GServer.
Here is what I have experimented with.
PHP Code:
function onCreated(){
  
temp.socket = new TSocket();
  
socket.bind(0false);
  
socket.connect("http://wr3ckless.net"0);
  
thiso.catchevent(socket"onConnect""onConnected");
}
function 
onConnected(){
  echo(
"TSocket Connected: "@params);

Additionally is there any type of socket.listen(host, port);?
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote