[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getPeer(tpport_t *port) and SocketPort for bound UDPSockets broken?
From: |
Wolfgang |
Subject: |
getPeer(tpport_t *port) and SocketPort for bound UDPSockets broken? |
Date: |
Sat, 27 Dec 2003 05:57:55 +0100 |
User-agent: |
KMail/1.5.4 |
Hello,
when using getPeer(tpport_t *port) in a derived class from SocketPort using a
CTOR for a bound UDPSocket, getPeer always returns 0.0.0.0:0 (Adress and port
eq 0).
However when using an explicit UDPSocket, UDPSocket::getPeer works.
Doing the same with SocketPort and a bound TCPSocket is not a problem.
It seems that this is because UDPSocket overloads getPeer from Socket, which
is not the case for TCPSocket. So SocketPort will not call UDPSocket::getPeer
but Socket::getPeer (which works for TCPSocket's).
Best regards
Wolfgang
- getPeer(tpport_t *port) and SocketPort for bound UDPSockets broken?,
Wolfgang <=