home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 13,057 of 14,669   
   Jorgen Grahn to All   
   Re: ideas for client server using tcp   
   21 Sep 09 15:28:37   
   
   From: grahn+nntp@snipabacken.se   
      
   On 21 Sep 2009 06:12:13 -0700, perl@perl.com  wrote:   
      
   [Are you *really* perl@perl.com? Please at least add a '.invalid' to   
   the end of such addresses, unless you want to direct more spam to   
   perl.com for some reason.]   
      
   > I am writing a prototype program in perl using tcp sockets   
   > for a client server program. I am able to communicate one   
   > way from multiple clients to a single server program.   
   > The server programs waits on the accept call and the   
   > moment a call is received from a client it forks itself   
   > and it goes back for the next accept one. This works   
   > great.   
   > Now my problem is, how do I communicate the result back   
   > from the server to the client program which wants that   
   > result.   
   >   
   > Any ideas?   
      
   Huh?  You now have a dedicated server process for each client, and it   
   seems you have control over the file descriptors because you don't   
   mention any problems *reading* data from the clients. Communicating   
   results back to the client simply means writing to the same file   
   descriptor.   
      
   /Jorgen   
      
   --   
     // Jorgen Grahn    O  o   .   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca