comp.lang.ada
 help / color / mirror / Atom feed
From: Craig Carey <research@ada95.ijs.com>
Subject: Re: Question on Client - Server communication
Date: Tue, 16 Jul 2002 06:32:47 GMT
Date: 2002-07-16T06:32:47+00:00	[thread overview]
Message-ID: <oo87jugu3v37imsu76mp1sgddhvrlaodrg@4ax.com> (raw)
In-Reply-To: XPNV8.306973$6m5.289035@rwcrnsc51.ops.asp.att.net


On Sun, 07 Jul 2002 02:37:43 GMT, Caffeine Junky <nospam@hotmail.com>
   wrote:

>On Sat, 06 Jul 2002 15:55:11 -0400, Preben Randhol wrote:
>
>> Caffeine Junky <nospam@hotmail.com> wrote on 06/07/2002 (03:12) :
>>> Use port "forwarding". Very simple.
>>> 
>>> The server designates a standard port. The application connects to the
>>> server on that port. The server then tells the application to switch
>>> to port number X and opens a connection on that port. This leaves the

It is better to not switch to a different port numbers.


>>> original port open to recieve more app requests. There are alot of

It remains open anyway. There can be one call to "bind()" where the port
number is given, and then many calls for to accept() for each TCP thread.
Port forwarding does not have switching to port numbers.

To have a single listening port number, can mean that code to strip off
headers is needed.

I have free source code that removes HTTP/1.0 headers like a client or a
webserver does: it is simple code that would need a bit of rewriting:

http://www.ijs.co.nz/code/ada95_strings_http_hdrs.zip

(That file contains a usable experimental replacement for Ada's
 Unbounded Strings package. It is an improvement.)


...
>Well...depends on what your doing with the tasks. If the tasks are
>generating alot of traffic, it might simplify things to tack on an
>additional port per Y number of tasks. i.e. Open another port for every
>10 tasks. This way the timing issues should be less troublesome.
...

Caffeine might wish that the word "timing" was replaced with: "ordering".
Also, adding unnecessary complexity does not simplify.

It sounds like an interesting project (now that I saw another message
 to CLA saying that Ada tasking and XFree86 (GtkAda too?) are somehow
 incompatible). I didn't catch all the details.









      reply	other threads:[~2002-07-16  6:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-05  8:08 Question on Client - Server communication Preben Randhol
2002-07-05  9:23 ` John R. Strohm
2002-07-05  9:48 ` Fabien Garcia
2002-07-05 10:05   ` Lutz Donnerhacke
2002-07-05 12:47     ` Fabien Garcia
2002-07-05 14:20       ` Lutz Donnerhacke
2002-07-05 10:09 ` John McCabe
2002-07-05 14:58 ` Thierry Lelegard
2002-07-06 23:19   ` Robert A Duff
2002-07-07  1:14     ` David C. Hoos, Sr.
2002-07-06  1:06 ` Caffeine Junky
2002-07-06 19:55   ` Preben Randhol
2002-07-07  2:37     ` Caffeine Junky
2002-07-16  6:32       ` Craig Carey [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox