/home/vlg/develop/libASSA/libassa/assa/ConUDPSocket.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //------------------------------------------------------------------------------
00003 //                           ConUDPSocket.h
00004 //------------------------------------------------------------------------------
00005 //  Copyright (C) 1997-2002  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 #ifndef CONUDP_SOCKET_H
00013 #define CONUDP_SOCKET_H
00014 
00015 #include "assa/UDPSocket.h"
00016 
00017 namespace ASSA {
00018 
00024 class ConUDPSocket : public UDPSocket {
00025 public:
00027     ConUDPSocket () : UDPSocket() {
00028         char self[] = "ConUDPSocket::ConUDPSocket"; trace(self);
00029     }
00030     
00032     virtual ~ConUDPSocket () {
00033         char self[] = "ConUDPSocket::~ConUDPSocket"; trace(self);
00034     } 
00035 
00039     bool connect (const Address& peer_addr_);
00040 
00042     void unconnect ();
00043 
00054     int read (char* buf_, const unsigned int size_);
00055     
00061     int write (const char* buf_ = NULL, const unsigned int size_ = 0);
00062 
00063     virtual int in_avail () const { return 0; }
00064 };
00065 
00066 } // end namespace ASSA
00067 
00068 #endif // CONUDP_SOCKET_H
00069 
00070 
00071 

Generated on Sun Aug 13 15:08:00 2006 for libassa by  doxygen 1.4.6