We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › error, disabling clientEvent() for 127.0.0.1
Page Index Toggle Pages: 1
error, disabling clientEvent() for 127.0.0.1 (Read 554 times)
error, disabling clientEvent() for 127.0.0.1
Dec 17th, 2008, 3:46pm
 
Hi, i'm getting this error repeatedly on second run of sketchs using cilentEvent catcher... It works fine the first time, but do not run anymore time. It appends also with the sample code.
any hints ?
Re: error, disabling clientEvent() for 127.0.0.1
Reply #1 - Dec 18th, 2008, 12:02am
 
seems like a socket opened on one scketch on one computer cannot be "read" by another sketch on the same computer (same IP, same port). Can't I build & test server and client sketches (2 PApplet) on 1 computer ??

Any help ???

How can I have on one side a server throwing datas, and on he other side a client dealing with them ? I'm looking forward to be able to build an "event based model" (eventClient() rather than something in the "draw()" loop on the client side)...

Tell me if this is not the correct way to think.
e.
Re: error, disabling clientEvent() for 127.0.0.1
Reply #2 - Dec 19th, 2008, 10:57am
 
Following on it : i'm going to blow this alone ?
can anyone root me to a correct path ???

I did tried to setup a local port forwarding :
- i start server
- i start port forwarding for this server (basicaly routing 127.0.0.1 12345 to 12346
... but then i'm stuck :
> if I run the port forwarding 127.0.0.1 12346 to 12345 before executing client sketch the client sketch refuses to connect (considering it is already in use ? - initial error)
> if I don't run the port forwading there is obviously to socket to connect to.

is there a way to go beyond this or shall I buy another computer ???
(a bid expensive to test a client-server approach !)

e.
Re: error, disabling clientEvent() for 127.0.0.1
Reply #3 - Dec 19th, 2008, 12:09pm
 
SOLVED IT ! Cool
I used client construcor reffering a Socket object, having setup socket adequatly before...

e.
Re: error, disabling clientEvent() for 127.0.0.1
Reply #4 - Dec 19th, 2008, 4:42pm
 
HELL it was a false good impression.
damn.
anyone ????
Re: error, disabling clientEvent() for 127.0.0.1
Reply #5 - Dec 19th, 2008, 5:29pm
 
have you tried the exampels?

Libraries>Network>SharedCanvasServer
Libraries>Network>SharedCanvasClient

works for me.
F
Re: error, disabling clientEvent() for 127.0.0.1
Reply #6 - Dec 19th, 2008, 5:39pm
 
sure putting communication exchanges in the draw() loop works, but I needed to handle event in eventClient...
that doesn't work.
E.
Page Index Toggle Pages: 1