[Common-cvs] netio/pub/platform/unix unix_net.h,1.7,1.7.2.1

[Common-cvs] netio/pub/platform/unix unix_net.h,1.7,1.7.2.1

rggammon at helixcommunity.org rggammon at helixcommunity.org
Tue Apr 6 13:17:18 PDT 2004


Update of /cvsroot/common/netio/pub/platform/unix
In directory cvs.internal.helixcommunity.org:/tmp/cvs-serv6232/pub/platform/unix

Modified Files:
      Tag: hxclient_1_3_0_neptunex
	unix_net.h 
Log Message:
Accept takes addrlen as a HX_SOCKLEN_T, not a UINT16


Index: unix_net.h
===================================================================
RCS file: /cvsroot/common/netio/pub/platform/unix/unix_net.h,v
retrieving revision 1.7
retrieving revision 1.7.2.1
diff -u -d -r1.7 -r1.7.2.1
--- unix_net.h	11 Dec 2003 21:12:27 -0000	1.7
+++ unix_net.h	6 Apr 2004 20:17:16 -0000	1.7.2.1
@@ -208,7 +208,7 @@
   virtual ULONG32 get_addr (void);
   virtual UINT16  get_local_port (void);
 
-  virtual HX_RESULT accept (sockaddr_in *addr, UINT16 *addrlen);
+  virtual HX_RESULT accept (sockaddr_in *addr, HX_SOCKLEN_T *addrlen);
   virtual HX_RESULT connect_accept(sockaddr_in *addr);
 
   virtual HX_RESULT bind (sockaddr_in *addr);
@@ -403,9 +403,9 @@
   return HXR_INVALID_OPERATION;
 }
 
-inline HX_RESULT unix_net::accept (sockaddr_in *addr, UINT16 *addrlen)
+inline HX_RESULT unix_net::accept (sockaddr_in *addr, HX_SOCKLEN_T *addrlen)
 {
-  return ::accept(get_sock(), (sockaddr*)addr, (HX_SOCKLEN_T*)addrlen);
+  return ::accept(get_sock(), (sockaddr*)addr, addrlen);
 }
                                          
 inline HX_RESULT unix_net::bind (sockaddr_in *addr)




More information about the Common-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.