00001 // -*- c++ -*- 00002 //------------------------------------------------------------------------------ 00003 // UnConUDPSocket.h 00004 //------------------------------------------------------------------------------ 00005 // Copyright (c) 1999 by Vladislav Grinchenko 00006 // 00007 // This library is free software; you can redistribute it and/or 00008 // modify it under the terms of the GNU Library General Public 00009 // License as published by the Free Software Foundation; either 00010 // version 2 of the License, or (at your option) any later version. 00011 //------------------------------------------------------------------------------ 00012 // Created: 04/01/99 00013 //------------------------------------------------------------------------------ 00014 #ifndef UNCONUPD_SOCKET_H 00015 #define UNCONUPD_SOCKET_H 00016 00017 #include "assa/UDPSocket.h" 00018 00019 namespace ASSA { 00020 00026 class UnConUDPSocket : public UDPSocket { 00027 public: 00029 UnConUDPSocket(); 00030 00032 ~UnConUDPSocket(); 00033 00044 int recvfrom (char* buf_, int size_, Address* peer_addr_); 00045 00057 int sendto (const char* buf_, 00058 const unsigned int size_, 00059 const Address* dest_addr_); 00060 00066 virtual int in_avail () const { return 0; } 00067 }; 00068 00069 UnConUDPSocket:: 00070 UnConUDPSocket () : UDPSocket() 00071 { 00072 trace_with_mask ("UnConUDPSocket::UnConUDPSocket", SOCKTRACE); 00073 } 00074 00075 UnConUDPSocket:: 00076 ~UnConUDPSocket() 00077 { 00078 trace_with_mask ("UnConUDPSocket::~UnConUDPSocket", SOCKTRACE); 00079 } 00080 00081 } // end namespace ASSA 00082 00083 #endif // UNCONUPD_SOCKET_H 00084 00085 00086