AnsweredAssumed Answered

VRf-Sockets_Questions

Question asked by VRFuser on Jul 17, 1997
send q VRf-Sockets_Questions ww mkibri@mki801.desy.de vrf

from: Greg Goebel / HP-MXD
      gvg@lvld.hp.com / 970-679-3030 / FAX 970-679-5971
to:   VRf-Uwe Hurdelbrink
date: Friday, 18 July 1997 1401 MDT

> Date: Wed, 16 Jul 1997 02:56:53 +0200
> From: Uwe Hurdelbrink <mkibri@mki801.desy.de>
> To: VEE Email Reflector <hpvxd_xc@hpislsup.lvld.hp.com>
> Subject: VRf
>
> VRf-Need_help
>
> I have problems to understand the "To/From Socket" object.
> My intention is to "write" a client server concept.
>
> That means, one or more clients connect to one
> Server (synchronized). The Server should run always.
>
> The clients should run temporary,
> may be one or two or more at the same time.
>
> I observed that only one client can connect to one
> server.
>
> If this is true, I think it makes no sense
> to install a client server concept with VEE, and
> that's why it makes no sense to have a "To/From Socket" object.
>
> If two or more clients try to connect to the server
> only the first client works, the other clients are
> not able to connect to the server.

You mean that you have a single To/From Socket on the server, doing a
Bind Port, while you have two clients trying to do a Connect Port?

Obviously only one is going to be able to make the connection at a time.
However, there is no reason the two cannot alternate.  One obtains the
connection ... the other waits and times or errors out until the first
releases.

This is not such an obstacle, however, since you can set up several ports
and poll among them -- setting the timeouts to a very short period (like
a third of a second), trapping the timeout error to see if the port should
be used or not, and then moving on to the next in a cycle if not.

The lab people say this is essentially what most network-aware applications
do.  Server software is of course much more sophisticated, but that is
beyond what could be reasonably done in VEE.

The Euchre game provided with VEE 4.X allows four people to play over a
network and implements this policy.

> Sometimes I get the Error Message: Too much files
> are open, and other curious things hapens like no Files
> listed in the File Select Box anymore.

Is this related to the sockets issue?

> Hard and Software Environment:
>  - HP 9000/725 50MHz
>  - HP-UX 9.05
>  - HP VEE 4.0
>
> Best Regards
> Uwe Hurdelbrink
>
> DESY (Deutsches Elektronen Synchrotron)
> -MKI-
> Notkestr. 85
> D-22603 Hamburg
>
> Tel.     : 040 / 8998 2055
> Fax.     : 040 / 8994 2055
> E-Mail     : mkibri@mki801.desy.de

If you have more questions, let us know.

[<>] regards -- gvg

Outcomes