home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / protocol / tcpip / 6043 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.2 KB  |  60 lines

  1. Newsgroups: comp.protocols.tcp-ip
  2. Path: sparky!uunet!panther!panther3.panther.mot.com!ronf
  3. From: ronf@panther3.panther.mot.com (Ron Feigen)
  4. Subject: Re: Determining Port Numbers & The RPC Portmapper
  5. Message-ID: <1993Jan21.155457.27880@panther.mot.com>
  6. Sender: usenet@panther.mot.com
  7. Nntp-Posting-Host: panther3.panther.mot.com
  8. Organization: Motorola Panther Project, Chandler, AZ
  9. References: <1993Jan20.162611.25831@walter.bellcore.com> <1jki9vINNmr9@aludra.usc.edu>
  10. Date: Thu, 21 Jan 1993 15:54:57 GMT
  11. Lines: 47
  12.  
  13. In article <1jki9vINNmr9@aludra.usc.edu> smiller@aludra.usc.edu (Stephen B. Miller) writes:
  14. >In article <1993Jan20.162611.25831@walter.bellcore.com> maritza@espresso.bae.bellcore.com (Maritza Ramirez) writes:
  15. >>
  16. >>
  17. >>I am trying to look for a solution to the problem of determining an 
  18. >>unknown remote port number. I will appreciate any comments on the 
  19. >>following situation:
  20. >>
  21. >> [text deleted, see earlier posting]
  22. >>
  23. >>Maritza
  24. >>
  25. >
  26. >I am beginning to work an identical problem here, but have not come up with
  27. >much more than you.  I have considered trying the dynamic update features in
  28. >the BIND 4.8.3 code, but they are so poorly documented that I might be better
  29. >off writing my own application.  My situation is further complicated by then
  30. >need to change the port number assignments dynamically, which might be done
  31. >by deregistering and reregistering with the portmapper.  If anyone else has
  32. >ideas please feel free.....
  33. >
  34. >Steve Miller - smiller@aludra.usc.edu
  35. >
  36. >
  37.  
  38. registerrpc will register a prog#/ver# with portmapper. Portmapper assigns the
  39. port #.  svc_unregister() removes the entry.  pmap_getport() looks up a prog#/
  40. version# on a host.  You must of course know the host name, prog# and version#
  41. in advance.  Be careful about having the same prog# with different version #s.
  42. Portmapper returns the port of a program with a match on prog #, but will give
  43. you the latest (I believe) version # if it doesn't find an exact match.
  44.  
  45. Dig through the man pages, the info is skinny but most of it is there.  There is
  46. also a book called "The Art of Distributed Application"  by John R. Corbin.
  47. It is supposed to give lots of detail about Portmapper  It is part of the Sun
  48. Tech Reference Library, published by Springer-Verlag.
  49.  
  50.  
  51. Ron
  52.  
  53.  
  54.  
  55. -- 
  56.  
  57. >
  58. Ron Feigen
  59. ronf@panther.mot.com
  60.