This commit is contained in:
glenux 2006-01-10 12:16:59 +00:00
parent 5328e4aa85
commit f3ed74b84f
5 changed files with 32 additions and 30 deletions

View file

@ -6,9 +6,9 @@
#ifndef _XIONFS_XSOCK
#define _XIONFS_XSOCK 1
#include "XSock_errors.h"
#include "XSock_global.h"
#include "XSock_iface.h"
#include "xsock_errors.h"
#include "xsock_global.h"
#include "xsock_iface.h"
using namespace std;
using namespace XSockExcept;

View file

@ -1,31 +1,33 @@
#ifndef _XSOCK_ERRORS
#define _XSOCK_ERRORS 1
#include <exception>
namespace XSockExcept {
class eXSockExcept { };
class eInvalidSocket : eXSockExcept { };
class eUnknownProtocol : eXSockExcept { };
class eUnableToListen : eXSockExcept { };
class eUnableToConnect : eXSockExcept { };
class eUnableToAccept : eXSockExcept { };
class eUnableToBind : eXSockExcept { };
class eSockUnreadable : eXSockExcept { };
class eSockUnwritable : eXSockExcept { };
class eUnknownXSockRole : eXSockExcept { };
class eUnableToResolveName : eXSockExcept { };
class eXSockNotReady : eXSockExcept { };
class eConnectionClosedByPeer : eXSockExcept { };
class eDeadLock : eXSockExcept { };
class eUnableToLock : eXSockExcept { };
class eUnableToUnlock : eXSockExcept { };
class eUnableToCloseFile : eXSockExcept { };
class eUnableToOpenFile : eXSockExcept { };
class eUnableToStatFile : eXSockExcept { };
class eUnableToOpen2ndFile : eXSockExcept { };
class eUnableToCreateFile : eXSockExcept { };
class eUnableToDeleteFile : eXSockExcept { };
class eUnableToReadFile : eXSockExcept { };
class eUnableToWriteFile : eXSockExcept { };
class eXSockExcept : public std::exception { };
class eInvalidSocket : public eXSockExcept { };
class eUnknownProtocol : public eXSockExcept { };
class eUnableToListen : public eXSockExcept { };
class eUnableToConnect : public eXSockExcept { };
class eUnableToAccept : public eXSockExcept { };
class eUnableToBind : public eXSockExcept { };
class eSockUnreadable : public eXSockExcept { };
class eSockUnwritable : public eXSockExcept { };
class eUnknownXSockRole : public eXSockExcept { };
class eUnableToResolveName : public eXSockExcept { };
class eXSockNotReady : public eXSockExcept { };
class eConnectionClosedByPeer : public eXSockExcept { };
class eDeadLock : public eXSockExcept { };
class eUnableToLock : public eXSockExcept { };
class eUnableToUnlock : public eXSockExcept { };
class eUnableToCloseFile : public eXSockExcept { };
class eUnableToOpenFile : public eXSockExcept { };
class eUnableToStatFile : public eXSockExcept { };
class eUnableToOpen2ndFile : public eXSockExcept { };
class eUnableToCreateFile : public eXSockExcept { };
class eUnableToDeleteFile : public eXSockExcept { };
class eUnableToReadFile : public eXSockExcept { };
class eUnableToWriteFile : public eXSockExcept { };
/* définition des exceptions ici */
}

View file

@ -1,5 +1,5 @@
#include "XSock.h"
#include "xsock.h"
#define VERBOSE 0
#define VERBOSETCP 0

View file

@ -1,5 +1,5 @@
#include "XSock.h"
#include "xsock.h"
// constantes utilisées dans XSock.cpp et dans XSockUDP.cpp
#define NBPORTSPUB 64512

View file

@ -1,5 +1,5 @@
#include "XSock.h"
#include "xsock.h"
// constantes utilisées dans XSock.cpp et dans XSockUDP_RELIABLE.cpp
#define NBPORTSPUB 64512