Re: [PD] Problem with tcpserver from iemnet

2012-02-16 Thread IOhannes m zmölnig

On 02/15/12 23:19, Jack wrote:

OK, so if my server quit or crash, I have to wait few minutes (maybe
only one) before to relaunch it.
I was hoping it was faster.


you can also launch the server and keep setting the port to the desired 
one (using [port 12345( ) until it reports that it is indeed using that 
port.


gsmd
IOhannes

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Problem with tcpserver from iemnet

2012-02-16 Thread Roman Haefeli
On Thu, 2012-02-16 at 13:53 +0100, IOhannes m zmölnig wrote:
 On 02/15/12 23:19, Jack wrote:
  OK, so if my server quit or crash, I have to wait few minutes (maybe
  only one) before to relaunch it.
  I was hoping it was faster.
 
 you can also launch the server and keep setting the port to the desired 
 one (using [port 12345( ) until it reports that it is indeed using that 
 port.

Ah, I didn't know about that. If I am not mistaken, this part is missing
in the help-file. I'll add it.

As a work-around, I used to use some bash script to make sure the
specified port is free before launching Pd. However, an in-patch
solution is _much_ nicer. Cool!

Roman


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Problem with tcpserver from iemnet

2012-02-16 Thread Jack

Le 16/02/2012 13:53, IOhannes m zmölnig a écrit :

On 02/15/12 23:19, Jack wrote:

OK, so if my server quit or crash, I have to wait few minutes (maybe
only one) before to relaunch it.
I was hoping it was faster.


you can also launch the server and keep setting the port to the 
desired one (using [port 12345( ) until it reports that it is indeed 
using that port.


gsmd
IOhannes

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


It is working perfectly with the message 'port X'.
Thanx IOhannes.
++

Jack



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Problem with tcpserver from iemnet

2012-02-15 Thread Jack

Hello,

I have two problems with [tcpserver] from iemnet :
- when i send the message 'disconnect', clients stay connected.
- when i quit the patch running [tcpserver] and relaunch it, the server 
doesn't start. I have to quit again and relaunch again to see the server 
running.


What i would like :
When the patch running the [tcpserver] quit, I relaunch the patch and 
want the server start. Is it possible ?

Thanx.
++

Jack



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Problem with tcpserver from iemnet

2012-02-15 Thread Andy Farnell


This may be more to do with the opersting system and how
sockets are allocated and buffered than Pure Data.

How you close the patch may make a difference.
Try gracefully closing, by disconnecting sockets, then
after a short delay exit Pd

They should be usable the next time you open.

You say they refuse to disconnect? Can you throw any
more light on that?

Andy






On Wed, Feb 15, 2012 at 07:10:03PM +0100, Jack wrote:
 Hello,
 
 I have two problems with [tcpserver] from iemnet :
 - when i send the message 'disconnect', clients stay connected.
 - when i quit the patch running [tcpserver] and relaunch it, the
 server doesn't start. I have to quit again and relaunch again to see
 the server running.
 
 What i would like :
 When the patch running the [tcpserver] quit, I relaunch the patch
 and want the server start. Is it possible ?
 Thanx.
 ++
 
 Jack
 
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Problem with tcpserver from iemnet

2012-02-15 Thread Roman Haefeli
Hi Jack
 Hello Andy and thanx for your answer,
 
 I have omitted to write some useful information about my configuration :
 Ubuntu 11.04
 Pd 0.42.6
 iemnet [tcpclient] and [tcpserver] compiled on Jan 23 2012 at 12:35:32

I have almost the same setup (Pd 0.43.1, iemnet compiled on 2012-02-02).
I cannot reproduce your first problem. Disconnecting clients from the
server works fine with your patch here.

 I tried to close the patch gracefully by disconnecting socket first and 
 then quit Pd after few seconds but when i relaunch both patchs it still 
 doesn't work : it is impossible to connect the client to the server.

I have that as well, but it seems it is not specific to iemnet's
classes. I experience that with many net classes in Pd and also - IIRC -
with other programming languages that provide ways to open a listening
socket. On my box it is a matter of seconds until the bind address is
freed. On an earlier Debian installation, it was often a matter of
minutes (for instance, when the netpd server crashed), which was more
annoying. I haven't figured out a way to avoid this.

Roman



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Problem with tcpserver from iemnet

2012-02-15 Thread Jack

Le 15/02/2012 23:13, Roman Haefeli a écrit :

Hi Jack

Hello Roman,

Hello Andy and thanx for your answer,

I have omitted to write some useful information about my configuration :
Ubuntu 11.04
Pd 0.42.6
iemnet [tcpclient] and [tcpserver] compiled on Jan 23 2012 at 12:35:32

I have almost the same setup (Pd 0.43.1, iemnet compiled on 2012-02-02).
I cannot reproduce your first problem. Disconnecting clients from the
server works fine with your patch here.

Yes, you are right, it was a mistake.

I tried to close the patch gracefully by disconnecting socket first and
then quit Pd after few seconds but when i relaunch both patchs it still
doesn't work : it is impossible to connect the client to the server.

I have that as well, but it seems it is not specific to iemnet's
classes. I experience that with many net classes in Pd and also - IIRC -
with other programming languages that provide ways to open a listening
socket. On my box it is a matter of seconds until the bind address is
freed. On an earlier Debian installation, it was often a matter of
minutes (for instance, when the netpd server crashed), which was more
annoying. I haven't figured out a way to avoid this.
OK, so if my server quit or crash, I have to wait few minutes (maybe 
only one) before to relaunch it.

I was hoping it was faster.
++

Jack



Roman





___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list