[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
UDPDuplex Exception on Solaris 8
From: |
Georg Soffel |
Subject: |
UDPDuplex Exception on Solaris 8 |
Date: |
Mon, 14 Jul 2003 08:18:31 +0200 |
Hello all,
we have difficulties using the UDPDuplex class from commonc++1.0.9 on
solaris 8.
The problem is that during calling the constructor an excpetion is raised
with SocketError 12.
The reason is that during the constructor of UDPTransmit and UDPReceive the
disconnect function is called.
This function tries to disconnect by setting the address family to
AF_UNSPEC and is calling ::connect.
However, according to this summary
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&selm=xoav65pxeyii.fsf%40sun.com&rnum=4
and our observations on solaris the error EAFNOSUPPORT is returned, which
should be ignored.
But according to the following sniplet an error is returned and an
exception is raised.
-- snip peer.cpp UDPTransmit::disconnect() and UDPReceive::disconnect()
memset(&addr, 0, len);
#ifndef WIN32
addr.sin_family = AF_UNSPEC;
#else
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = INADDR_NONE;
#endif
if(::connect(so, (sockaddr *)&addr, len))
return connectError();
return errSuccess;
-- snip peer.cpp
Is it possible to ignore EAFNOSUPPORT and return success in that case?
And second I posted a bug report about incomming data loss on Thu, 8 May
2003
with detailed explantions abuot the source of the bug and possible
solutions.
Nobody gave any feedback till now. What will happen to this bug?
Regards
Georg Soffel
Marconi Communications GmbH Phone: +49 (7191) 13 2155
Postfach: 1920 Fax: +49 (7191)
13 6 2155
D-71509 Backnang
mailto:address@hidden
Germany
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- UDPDuplex Exception on Solaris 8,
Georg Soffel <=