diff options
-rw-r--r-- | ace/SOCK_CODgram.cpp | 12 | ||||
-rw-r--r-- | ace/SOCK_CODgram.h | 6 |
2 files changed, 12 insertions, 6 deletions
diff --git a/ace/SOCK_CODgram.cpp b/ace/SOCK_CODgram.cpp index 14c12f2e3c6..eb15e357c43 100644 --- a/ace/SOCK_CODgram.cpp +++ b/ace/SOCK_CODgram.cpp @@ -15,10 +15,12 @@ ACE_SOCK_CODgram::dump (void) const // Here's the general-purpose constructor. ACE_SOCK_CODgram::ACE_SOCK_CODgram (const ACE_Addr &remote, const ACE_Addr &local, - int protocol_family, int protocol) + int protocol_family, int protocol, + int reuse_addr) { ACE_TRACE ("ACE_SOCK_CODgram::ACE_SOCK_CODgram"); - if (this->open (remote, local, protocol_family, protocol) == -1) + if (this->open (remote, local, + protocol_family, protocol, reuse_addr) == -1) ACE_ERROR ((LM_ERROR, "%p\n", "ACE_SOCK_CODgram")); } @@ -45,10 +47,12 @@ ACE_SOCK_CODgram::ACE_SOCK_CODgram (const ACE_Addr &remote, const ACE_Addr &loca int ACE_SOCK_CODgram::open (const ACE_Addr &remote, const ACE_Addr &local, - int protocol_family, int protocol) + int protocol_family, int protocol, + int reuse_addr) { ACE_TRACE ("ACE_SOCK_CODgram::open"); - if (ACE_SOCK::open (SOCK_DGRAM, protocol_family, protocol) == -1) + if (ACE_SOCK::open (SOCK_DGRAM, protocol_family, + protocol, reuse_addr) == -1) return -1; else { diff --git a/ace/SOCK_CODgram.h b/ace/SOCK_CODgram.h index 008a5a6f60e..0b79aa61e84 100644 --- a/ace/SOCK_CODgram.h +++ b/ace/SOCK_CODgram.h @@ -34,13 +34,15 @@ public: ACE_SOCK_CODgram (const ACE_Addr &remote_sap, const ACE_Addr &local_sap = ACE_Addr::sap_any, int protocol_family = PF_INET, - int protocol = 0); + int protocol = 0, + int reuse_addr = 0); // Initiate a connected dgram. int open (const ACE_Addr &remote_sap, const ACE_Addr &local_sap = ACE_Addr::sap_any, int protocol_family = PF_INET, - int protocol = 0); + int protocol = 0, + int reuse_addr = 0); // Initiate a connected dgram. void dump (void) const; |