home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!selway.umt.edu!cs000hf
- From: cs000hf@selway.umt.edu (Hong Fan)
- Subject: how to use setsockopt to reuse local address
- Message-ID: <1992Nov21.182005.14806@selway.umt.edu>
- Organization: University of Montana
- Date: Sat, 21 Nov 1992 18:20:05 GMT
- Lines: 21
-
-
- Hi, everyone:
-
- Does anyone know how to use 'setsockopt' to reuse the local address on the
- client site? I want to setup two socket connections as the following
- associations.
-
- { tcp, server, 1500, client, 1000 }
- { tcp, server, 1501, client, 1000 }
-
- One way I tried is setsockopt(sock,SO_SOCK, SO_REUSEADDR,(char *)&on,sizeof(on))
- on the client site after the creation of sock. but it still gave me another
- port number. Do I need to setsockopt on the server site?
-
- If you know how to solve this problem, please mail me at cs000hf@selway.umt.edu
- I appreciate your time and help.
-
- sincerely
-
- hong fan
-
-