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,058 of 14,669   
   Barry Margolin to Ramon F Herrera   
   Re: Looking for tutorial code - A TCP sy   
   21 Sep 09 11:38:05   
   
   4c5b1ff6   
   XPost: comp.os.ms-windows.programmer.win32   
   From: barmar@alum.mit.edu   
      
   In article   
   ,   
    Ramon F Herrera  wrote:   
      
   > What I need is to:   
   >   
   >  - client creates a socket (TCP, sync)   
   >  - server accepts   
   >  - client sends some (say, 4) arguments   
   >  - server reads them (I am stuck in this part now)   
   >  - server does some processing (I have no problem with this)   
   >  - server sends the results back   
   >  - client reads them   
   >   
   > A perfect example was the Boost set of daytime (port 13) examples, BUT   
   > they do not pass arguments.   
      
   I think you need to do some googling on "marshaling" or "serializing".   
   These are the terms used for representing sequences of values (either   
   structured or individual parameters) in a serial form.   
      
   Basically, you have to come up with an unambiguous way to represent your   
   data, so that the client can write the parameters, the server can read   
   them, and then the same thing can be done with the results the server   
   sends back.   
      
   Sun RPC uses XDR, eXternal Data Representation.   
      
   --   
   Barry Margolin, barmar@alum.mit.edu   
   Arlington, MA   
   *** PLEASE don't copy me on replies, I'll read them in the group ***   
      
   --- 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