diff options
author | yamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-06-24 20:33:52 +0000 |
---|---|---|
committer | yamuna <yamuna@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-06-24 20:33:52 +0000 |
commit | 2d76dc56d580ef536177e777ce40189d34f13e17 (patch) | |
tree | 3f49cc62e73ba3612782a0b6d66e0a26c4361160 /ace/QoS/QoS_Session_Impl.cpp | |
parent | c12b1e4d8d49472916e12fff51a57a63c8aadabc (diff) | |
download | ATCD-2d76dc56d580ef536177e777ce40189d34f13e17.tar.gz |
ChangelogTag: Tue June 24 16:26:06 2003 Yamuna Krishnamurthy <yamuna@oomworks.com>
Diffstat (limited to 'ace/QoS/QoS_Session_Impl.cpp')
-rw-r--r-- | ace/QoS/QoS_Session_Impl.cpp | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/ace/QoS/QoS_Session_Impl.cpp b/ace/QoS/QoS_Session_Impl.cpp index 4a340861ab0..c516d38e9e0 100644 --- a/ace/QoS/QoS_Session_Impl.cpp +++ b/ace/QoS/QoS_Session_Impl.cpp @@ -237,7 +237,9 @@ rsvp_callback (rapi_sid_t sid, ACE_RAPI_Session::ACE_RAPI_Session (void) { ACE_TRACE ("ACE_RAPI_Session::ACE_RAPI_Session"); - this->source_port (DEFAULT_SOURCE_SENDER_PORT); + //this->source_port (DEFAULT_SOURCE_SENDER_PORT); + ACE_NEW (this->src_addr_, + ACE_INET_Addr ("0")); } // Open a RAPI QoS session [dest IP, dest port, Protocol ID]. @@ -245,8 +247,12 @@ int ACE_RAPI_Session::open (ACE_INET_Addr dest_addr, ACE_Protocol_ID protocol_id) { + char buf [BUFSIZ]; + dest_addr.addr_to_string (buf, + BUFSIZ); ACE_DEBUG ((LM_DEBUG, - "In RAPI SESSION OPEN\n")); + "In RAPI SESSION OPEN %s\n", + buf)); this->dest_addr_ = dest_addr; this->protocol_id_ = protocol_id; @@ -390,22 +396,33 @@ ACE_RAPI_Session::sending_qos (const ACE_QoS &ace_qos) sending_flowspec->ttl ())); // This the source sender port. - ACE_INET_Addr sender_addr (this->source_port ()); + // ACE_INET_Addr sender_addr (this->source_port ()); ACE_DEBUG ((LM_DEBUG, "Making the rapi_sender () call\n")); // Set the Sender TSpec for this QoS session. + int result = rapi_sender(this->session_id_, 0, - (sockaddr *) sender_addr.get_addr (), + (sockaddr *) this->src_addr_->get_addr (), NULL, t_spec, NULL, NULL, sending_flowspec->ttl ()) ; + /* + int result = rapi_sender(this->session_id_, + 0, + (sockaddr *) sender_addr.get_addr (), + NULL, + t_spec, + NULL, + NULL, + sending_flowspec->ttl ()) ; + */ if(result!= 0) ACE_ERROR_RETURN ((LM_ERROR, "(%N|%l) rapi_sender error %d:\n\tPATH Generation can't be started\n", |