home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / misc / 3919 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.6 KB

  1. Path: sparky!uunet!pipex!unipalm!uknet!ieunet!ccvax.ucd.ie!bharat
  2. From: bharat@ccvax.ucd.ie
  3. Newsgroups: comp.sys.sun.misc
  4. Subject: compare socket based and RPC based..
  5. Message-ID: <1992Aug25.140401.49557@ccvax.ucd.ie>
  6. Date: 25 Aug 92 14:04:01 GMT
  7. Organization: University College Dublin
  8. Lines: 44
  9.  
  10. Hi Net Gurus,
  11.  
  12. could any one tell me the advantages of "Socket Based interprocess
  13. communication" over "Remote Procedure Call based interprocess communication"?
  14.  
  15. My application program runs on the top of the packet layer. It communicates 
  16. with a X.25 switch. The communication between switch and application programm
  17. is based on 'BSD Socket based communication'.
  18.  
  19. I summarize it in the following steps- 
  20.  
  21. 1. I open a socket in X.25 domain (i am using SunNet X.25 software).
  22.  
  23. 2. Pass the address of remote switch to the socket.
  24.  
  25. 3. send some data (e.g. 'stat' command for the switch which gives all the 
  26. statstical information from the switch). 
  27.  
  28. 4. receive the output (e.g. output of 'stat' command which is parameter values 
  29. from the switch).
  30.  
  31.              ----------------------------------------------------------
  32.  
  33. My questions are: 
  34.  
  35. 1.why and when the socket based communication is used?
  36.  
  37. 2.Why always RPC based communication is prefered over socket based 
  38. communication is prefered?
  39.  
  40. 3. Is it possible to implement a 'Client-Server' model using  sockets? if yes,
  41. can i call 'My-application-program=X.25-switch' (as given in steps 1-4) as
  42. a 'cleint=server' model?
  43.  
  44.  
  45. Any pointers/hints..? Thanks very much for reading this. I will welcome any
  46. concern information.
  47.  
  48. Please ..send your answers by email to me.
  49.  
  50. - Bharat
  51.  
  52. (bharat@ccvax.ucd.ie)
  53.   
  54.