home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11811 < prev    next >
Encoding:
Text File  |  1992-11-21  |  972 b   |  31 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!selway.umt.edu!cs000hf
  3. From: cs000hf@selway.umt.edu (Hong Fan)
  4. Subject: how to use setsockopt to reuse local address
  5. Message-ID: <1992Nov21.182005.14806@selway.umt.edu>
  6. Organization: University of Montana
  7. Date: Sat, 21 Nov 1992 18:20:05 GMT
  8. Lines: 21
  9.  
  10.  
  11. Hi, everyone:
  12.  
  13. Does anyone know how to use 'setsockopt' to reuse the local address on the 
  14. client site? I want to setup two socket connections as the following
  15. associations.
  16.  
  17.  { tcp, server, 1500, client, 1000 }
  18.  { tcp, server, 1501, client, 1000 }
  19.  
  20. One way I tried is setsockopt(sock,SO_SOCK, SO_REUSEADDR,(char *)&on,sizeof(on))
  21. on the client site after the creation of sock. but it still gave me another
  22. port number. Do I need to setsockopt on the server site?
  23.  
  24. If you know how to solve this problem, please mail me at cs000hf@selway.umt.edu
  25. I appreciate your time and help.
  26.  
  27. sincerely
  28.  
  29. hong fan
  30.  
  31.