diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-08 05:47:11 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-08 05:47:11 +0000 |
commit | 39c71ecef71154ac80b4ba2fcb400f2f1fbc6daa (patch) | |
tree | 3654d9e5b125fd36efa1fb45f70851f528c0923f /ace/ACE.cpp | |
parent | 0a5a8665433b3354657b8c356d45d46176b4d290 (diff) | |
download | ATCD-39c71ecef71154ac80b4ba2fcb400f2f1fbc6daa.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/ACE.cpp')
-rw-r--r-- | ace/ACE.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ace/ACE.cpp b/ace/ACE.cpp index 773abd02b07..109d57de86f 100644 --- a/ace/ACE.cpp +++ b/ace/ACE.cpp @@ -1526,12 +1526,12 @@ ACE::handle_timed_accept (ACE_HANDLE listener, // Bind socket to an unused port. int -ACE::bind_port (ACE_HANDLE handle) +ACE::bind_port (ACE_HANDLE handle, + ACE_UINT32 ip_addr) { ACE_TRACE ("ACE::bind_port"); + sockaddr_in sin; - // This should be a constant, so I hope they never change the number - // of bits in a port number! static u_short upper_limit = ACE_MAX_DEFAULT_PORT; int lower_limit = IPPORT_RESERVED; int round_trip = upper_limit; @@ -1541,7 +1541,7 @@ ACE::bind_port (ACE_HANDLE handle) #if defined (ACE_HAS_SIN_LEN) sin.sin_len = sizeof sin; #endif /* ACE_HAS_SIN_LEN */ - sin.sin_addr.s_addr = INADDR_ANY; + sin.sin_addr.s_addr = ip_addr; for (;;) { @@ -1551,7 +1551,7 @@ ACE::bind_port (ACE_HANDLE handle) { #if defined (ACE_WIN32) upper_limit--; -#endif +#endif /* ACE_WIN32 */ return 0; } else if (errno != EADDRINUSE) |