summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-11-22 01:02:57 +0000
committerpradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-11-22 01:02:57 +0000
commit44fc04cbf5fde84ee1642a3c1e426a339b1272bf (patch)
tree36f7d19fb1c27aa88b1307c292025df3607258fe
parentaaf112cf4f12ec1821fdf2e48b0759e1b3eedc05 (diff)
downloadATCD-44fc04cbf5fde84ee1642a3c1e426a339b1272bf.tar.gz
Tue Nov 21 18:54:14 2000 Pradeep Gore <pradeep@cs.wustl.edu>
-rw-r--r--ChangeLog13
-rw-r--r--ChangeLogs/ChangeLog-02a13
-rw-r--r--ChangeLogs/ChangeLog-03a13
-rw-r--r--apps/drwho/CM_Client.cpp48
4 files changed, 54 insertions, 33 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c1e8782bca..eccab3d75d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,17 @@
+Tue Nov 21 18:54:14 2000 Pradeep Gore <pradeep@cs.wustl.edu>
+
+ * apps/drwho/CM_Client.cpp:
+
+ Explicitly cast Comm_Manager::sokfd_ to int in calls to
+ ACE_OS::recvfrom and ACE_OS::closesocket to quiet LynxOS.
+
Tue Nov 21 17:42:36 2000 Pradeep Gore <pradeep@cs.wustl.edu>
* ace/IPC_SAP.cpp:
- Modified ACE_IPC_SAP::disable to call ::WSAEventSelect on Win32.
- Thanks to Chris Uzdavinis <chris@atdesk.com> for contributing
- these changes.
+ Modified ACE_IPC_SAP::disable to call ::WSAEventSelect on Win32.
+ Thanks to Chris Uzdavinis <chris@atdesk.com> for contributing
+ these changes.
Tue Nov 21 11:00:14 2000 Darrell Brunsch <brunsch@uci.edu>
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index 8c1e8782bca..eccab3d75d9 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,10 +1,17 @@
+Tue Nov 21 18:54:14 2000 Pradeep Gore <pradeep@cs.wustl.edu>
+
+ * apps/drwho/CM_Client.cpp:
+
+ Explicitly cast Comm_Manager::sokfd_ to int in calls to
+ ACE_OS::recvfrom and ACE_OS::closesocket to quiet LynxOS.
+
Tue Nov 21 17:42:36 2000 Pradeep Gore <pradeep@cs.wustl.edu>
* ace/IPC_SAP.cpp:
- Modified ACE_IPC_SAP::disable to call ::WSAEventSelect on Win32.
- Thanks to Chris Uzdavinis <chris@atdesk.com> for contributing
- these changes.
+ Modified ACE_IPC_SAP::disable to call ::WSAEventSelect on Win32.
+ Thanks to Chris Uzdavinis <chris@atdesk.com> for contributing
+ these changes.
Tue Nov 21 11:00:14 2000 Darrell Brunsch <brunsch@uci.edu>
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index 8c1e8782bca..eccab3d75d9 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,10 +1,17 @@
+Tue Nov 21 18:54:14 2000 Pradeep Gore <pradeep@cs.wustl.edu>
+
+ * apps/drwho/CM_Client.cpp:
+
+ Explicitly cast Comm_Manager::sokfd_ to int in calls to
+ ACE_OS::recvfrom and ACE_OS::closesocket to quiet LynxOS.
+
Tue Nov 21 17:42:36 2000 Pradeep Gore <pradeep@cs.wustl.edu>
* ace/IPC_SAP.cpp:
- Modified ACE_IPC_SAP::disable to call ::WSAEventSelect on Win32.
- Thanks to Chris Uzdavinis <chris@atdesk.com> for contributing
- these changes.
+ Modified ACE_IPC_SAP::disable to call ::WSAEventSelect on Win32.
+ Thanks to Chris Uzdavinis <chris@atdesk.com> for contributing
+ these changes.
Tue Nov 21 11:00:14 2000 Darrell Brunsch <brunsch@uci.edu>
diff --git a/apps/drwho/CM_Client.cpp b/apps/drwho/CM_Client.cpp
index b336157a6ad..f236d29b5a1 100644
--- a/apps/drwho/CM_Client.cpp
+++ b/apps/drwho/CM_Client.cpp
@@ -44,38 +44,38 @@ CM_Client::receive (int timeout)
0,
0,
this->top_) <= 0)
- break;
+ break;
else
- {
- int sin_len = sizeof this->sin_;
- int n = ACE_OS::recvfrom (Comm_Manager::sokfd_,
+ {
+ int sin_len = sizeof this->sin_;
+ int n = ACE_OS::recvfrom ((int)Comm_Manager::sokfd_,
this->recv_packet_,
UDP_PACKET_SIZE,
0,
(sockaddr *) &this->sin_,
&sin_len);
- if (n < 0)
- return -1;
- else
- {
- if (Options::get_opt (Options::DEBUG) != 0)
- {
- hostent *np = ACE_OS::gethostbyaddr ((char *) &this->sin_.sin_addr,
+ if (n < 0)
+ return -1;
+ else
+ {
+ if (Options::get_opt (Options::DEBUG) != 0)
+ {
+ hostent *np = ACE_OS::gethostbyaddr ((char *) &this->sin_.sin_addr,
sizeof this->sin_.sin_addr,
AF_INET);
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
"receiving from server host %s (%s)\n",
np->h_name,
inet_ntoa (this->sin_.sin_addr)));
- }
+ }
- if (this->demux (this->recv_packet_, n) < 0)
- return -1;
+ if (this->demux (this->recv_packet_, n) < 0)
+ return -1;
- Multicast_Manager::checkoff_host (this->sin_.sin_addr);
- }
- }
+ Multicast_Manager::checkoff_host (this->sin_.sin_addr);
+ }
+ }
}
for (const char *host_name;
@@ -100,16 +100,16 @@ CM_Client::send (void)
while (Multicast_Manager::get_next_host_addr (this->sin_.sin_addr) != 0)
{
if (Options::get_opt (Options::DEBUG) != 0)
- {
- hostent *np = ACE_OS::gethostbyaddr ((char *) &this->sin_.sin_addr,
+ {
+ hostent *np = ACE_OS::gethostbyaddr ((char *) &this->sin_.sin_addr,
sizeof this->sin_.sin_addr,
AF_INET);
- ACE_DEBUG ((LM_DEBUG,
+ ACE_DEBUG ((LM_DEBUG,
"sending to server host %s (%s)\n",
np->h_name,
inet_ntoa (this->sin_.sin_addr)));
- }
+ }
if (sendto (Comm_Manager::sokfd_,
this->send_packet_,
@@ -117,7 +117,7 @@ CM_Client::send (void)
0,
(sockaddr *) &this->sin_,
sizeof this->sin_) < 0)
- return -1;
+ return -1;
}
return 1;
}
@@ -133,5 +133,5 @@ CM_Client::~CM_Client (void)
ACE_DEBUG ((LM_DEBUG,
"disposing CM_Client\n"));
- ACE_OS::closesocket (Comm_Manager::sokfd_);
+ ACE_OS::closesocket ((int)Comm_Manager::sokfd_);
}