bug 203: Listen must be implemented for Udp and Packet sockets.
This commit is contained in:
@@ -216,6 +216,13 @@ UdpSocketImpl::Connect(const Address & address)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
UdpSocketImpl::Listen (uint32_t queueLimit)
|
||||
{
|
||||
m_errno = Socket::ERROR_OPNOTSUPP;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
UdpSocketImpl::Send (Ptr<Packet> p)
|
||||
{
|
||||
|
||||
@@ -57,6 +57,7 @@ public:
|
||||
virtual int ShutdownSend (void);
|
||||
virtual int ShutdownRecv (void);
|
||||
virtual int Connect(const Address &address);
|
||||
virtual int Listen (uint32_t queueLimit);
|
||||
virtual int Send (Ptr<Packet> p);
|
||||
virtual int SendTo (Ptr<Packet> p, const Address &address);
|
||||
virtual uint32_t GetTxAvailable (void) const;
|
||||
|
||||
Reference in New Issue
Block a user