mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-08 05:51:17 -07:00
Compile fixes.
This commit is contained in:
parent
7e80d7e551
commit
bd749e040d
7 changed files with 109 additions and 103 deletions
|
@ -28,7 +28,7 @@
|
|||
#ifndef ZT_UDPSOCKET_HPP
|
||||
#define ZT_UDPSOCKET_HPP
|
||||
|
||||
#include "Socket.hpp"
|
||||
//#include "Socket.hpp"
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
|
@ -37,7 +37,7 @@ class SocketManager;
|
|||
/**
|
||||
* Locally bound UDP socket
|
||||
*/
|
||||
class TcpSocket : public Socket
|
||||
class UdpSocket : public Socket
|
||||
{
|
||||
friend class SharedPtr<Socket>;
|
||||
friend class SocketManager;
|
||||
|
@ -45,7 +45,6 @@ class TcpSocket : public Socket
|
|||
public:
|
||||
virtual ~UdpSocket();
|
||||
|
||||
virtual bool isOpen() const;
|
||||
virtual bool send(const InetAddress &to,const void *msg,unsigned int msglen);
|
||||
|
||||
/**
|
||||
|
@ -60,20 +59,17 @@ public:
|
|||
bool sendWithHopLimit(const InetAddress &to,const void *msg,unsigned int msglen,int hopLimit);
|
||||
|
||||
protected:
|
||||
#ifdef __WINDOWS__
|
||||
UdpSocket(Type t,SOCKET s) :
|
||||
#else
|
||||
UdpSocket(Type t,int s) :
|
||||
#endif
|
||||
Socket(t,s) {}
|
||||
|
||||
virtual bool notifyAvailableForRead(const SharedPtr<Socket> &self,SocketManager *sm);
|
||||
virtual bool notifyAvailableForWrite(const SharedPtr<Socket> &self,SocketManager *sm);
|
||||
|
||||
private:
|
||||
#ifdef __WINDOWS__
|
||||
UdpSocket(Type t,SOCKET sock) :
|
||||
#else
|
||||
UdpSocket(Type t,int sock) :
|
||||
#endif
|
||||
Socket(t,sock)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
}; // namespace ZeroTier
|
||||
} // namespace ZeroTier
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue