home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / wizards / 5415 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!olivea!sgigate!sgi!wdl1!bmk
  2. From: bmk@box.ssd.loral.com (Bruce Krawetz)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: RPC, Sockets and file descriptors
  5. Message-ID: <1993Jan12.211549.26037@wdl.loral.com>
  6. Date: 12 Jan 93 21:15:49 GMT
  7. References: <1993Jan11.141906.13294@asf.com>
  8. Sender: news@wdl.loral.com
  9. Distribution: na
  10. Organization: Space Systems/Loral, Palo Alto, CA  USA
  11. Lines: 35
  12.  
  13. In article <1993Jan11.141906.13294@asf.com>, jfm@asf.com (Jim Moore) writes:
  14. # I am looking at using XtAppAddInput in conjunction with RPC.  I need a file
  15. # descriptor for XtAppAddInput.  The documentation on RPC says that you can
  16. # have your own select that waits on your own descriptors, so it must be possible
  17. # to get the descriptor for the RPC socket.  There is a lot of documentation
  18. # to weed through to figure out how to do it.
  19. # Question:  Does anyone out there have a C code segment that gets the file
  20. # descriptor of an RPC socket?  If so, could you be so gracious as to send it
  21. # to me?
  22. # Thanks in advance,
  23. # Jim
  24. # -- 
  25. # Jim Moore                       Hughes Training Inc.
  26. # Phone: (612) 572-7721           5301 East River Road
  27. # Fax:   (612) 572-7732           Mpls, Mn. 55421-1024
  28. # Email: jfm@asf.com              USA
  29.  
  30. -- 
  31.  
  32.  
  33. me no wizard, but me got Source Code!  me LOVE archie when searching
  34. for 'rpcgen'.  me also have man-pages, but me no read them. 8-)
  35.  
  36. The functions  clntudp_create()  and clnttcp_create()  will use any socket
  37. you specify, or choose (open, and return) a 'random' socket if you dont
  38. specify.  The function  clnt_control()  can return the current socket.
  39.  
  40.  
  41. -------- bmk@box.ssl.loral.com --------
  42. We must learn from our mistakes, so that we may make bigger and better ones.
  43.