Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

pana_io.h

00001 /* BEGIN_COPYRIGHT                                                        */
00002 /*                                                                        */
00003 /* Open Diameter: Open-source software for the Diameter and               */
00004 /*                Diameter related protocols                              */
00005 /*                                                                        */
00006 /* Copyright (C) 2002-2004 Open Diameter Project                          */
00007 /*                                                                        */
00008 /* This library is free software; you can redistribute it and/or modify   */
00009 /* it under the terms of the GNU Lesser General Public License as         */
00010 /* published by the Free Software Foundation; either version 2.1 of the   */
00011 /* License, or (at your option) any later version.                        */
00012 /*                                                                        */
00013 /* This library is distributed in the hope that it will be useful,        */
00014 /* but WITHOUT ANY WARRANTY; without even the implied warranty of         */
00015 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU      */
00016 /* Lesser General Public License for more details.                        */
00017 /*                                                                        */
00018 /* You should have received a copy of the GNU Lesser General Public       */
00019 /* License along with this library; if not, write to the Free Software    */
00020 /* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307    */
00021 /* USA.                                                                   */
00022 /*                                                                        */
00023 /* In addition, when you copy and redistribute some or the entire part of */
00024 /* the source code of this software with or without modification, you     */
00025 /* MUST include this copyright notice in each copy.                       */
00026 /*                                                                        */
00027 /* If you make any changes that are appeared to be useful, please send    */
00028 /* sources that include the changed part to                               */
00029 /* diameter-developers@lists.sourceforge.net so that we can reflect your  */
00030 /* changes to one unified version of this software.                       */
00031 /*                                                                        */
00032 /* END_COPYRIGHT                                                          */
00033 
00034 #ifndef __PANA_IO_H__
00035 #define __PANA_IO_H__
00036 
00037 #include "pana_exports.h"
00038 #include "pana_exceptions.h"
00039 #include "pana_device_id.h"
00040 
00044 class PANA_EXPORT PANA_IO
00045 {
00046     public:
00050         virtual ~PANA_IO() { }
00051 
00058         virtual ACE_INT32 open(std::string &iface,
00059                                ACE_INET_Addr &listenAddr) = 0;
00060 
00069         virtual ACE_INT32 recv(void *buf,
00070                                size_t n,
00071                                ACE_UINT32 &srcPort,
00072                                PANA_DeviceIdContainer &srcDevices) = 0;
00073 
00082         virtual ACE_INT32 send(void *buf,
00083                                size_t n,
00084                                ACE_UINT32 destPort,
00085                                PANA_DeviceIdContainer &destDevices) = 0;
00086 
00092         virtual ACE_INT32 get_local_addr(PANA_DeviceIdContainer &localDevices) = 0;
00093 
00097         virtual void close() = 0;
00098 };
00099 
00100 #endif /* __PANA_IO_H__ */
00101 

Generated on Fri Jun 25 19:18:29 2004 for PANA by doxygen 1.3.5