This commit is contained in:
parent
5328e4aa85
commit
f3ed74b84f
5 changed files with 32 additions and 30 deletions
|
@ -6,9 +6,9 @@
|
||||||
#ifndef _XIONFS_XSOCK
|
#ifndef _XIONFS_XSOCK
|
||||||
#define _XIONFS_XSOCK 1
|
#define _XIONFS_XSOCK 1
|
||||||
|
|
||||||
#include "XSock_errors.h"
|
#include "xsock_errors.h"
|
||||||
#include "XSock_global.h"
|
#include "xsock_global.h"
|
||||||
#include "XSock_iface.h"
|
#include "xsock_iface.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace XSockExcept;
|
using namespace XSockExcept;
|
||||||
|
|
|
@ -1,31 +1,33 @@
|
||||||
#ifndef _XSOCK_ERRORS
|
#ifndef _XSOCK_ERRORS
|
||||||
#define _XSOCK_ERRORS 1
|
#define _XSOCK_ERRORS 1
|
||||||
|
|
||||||
|
#include <exception>
|
||||||
|
|
||||||
namespace XSockExcept {
|
namespace XSockExcept {
|
||||||
class eXSockExcept { };
|
class eXSockExcept : public std::exception { };
|
||||||
class eInvalidSocket : eXSockExcept { };
|
class eInvalidSocket : public eXSockExcept { };
|
||||||
class eUnknownProtocol : eXSockExcept { };
|
class eUnknownProtocol : public eXSockExcept { };
|
||||||
class eUnableToListen : eXSockExcept { };
|
class eUnableToListen : public eXSockExcept { };
|
||||||
class eUnableToConnect : eXSockExcept { };
|
class eUnableToConnect : public eXSockExcept { };
|
||||||
class eUnableToAccept : eXSockExcept { };
|
class eUnableToAccept : public eXSockExcept { };
|
||||||
class eUnableToBind : eXSockExcept { };
|
class eUnableToBind : public eXSockExcept { };
|
||||||
class eSockUnreadable : eXSockExcept { };
|
class eSockUnreadable : public eXSockExcept { };
|
||||||
class eSockUnwritable : eXSockExcept { };
|
class eSockUnwritable : public eXSockExcept { };
|
||||||
class eUnknownXSockRole : eXSockExcept { };
|
class eUnknownXSockRole : public eXSockExcept { };
|
||||||
class eUnableToResolveName : eXSockExcept { };
|
class eUnableToResolveName : public eXSockExcept { };
|
||||||
class eXSockNotReady : eXSockExcept { };
|
class eXSockNotReady : public eXSockExcept { };
|
||||||
class eConnectionClosedByPeer : eXSockExcept { };
|
class eConnectionClosedByPeer : public eXSockExcept { };
|
||||||
class eDeadLock : eXSockExcept { };
|
class eDeadLock : public eXSockExcept { };
|
||||||
class eUnableToLock : eXSockExcept { };
|
class eUnableToLock : public eXSockExcept { };
|
||||||
class eUnableToUnlock : eXSockExcept { };
|
class eUnableToUnlock : public eXSockExcept { };
|
||||||
class eUnableToCloseFile : eXSockExcept { };
|
class eUnableToCloseFile : public eXSockExcept { };
|
||||||
class eUnableToOpenFile : eXSockExcept { };
|
class eUnableToOpenFile : public eXSockExcept { };
|
||||||
class eUnableToStatFile : eXSockExcept { };
|
class eUnableToStatFile : public eXSockExcept { };
|
||||||
class eUnableToOpen2ndFile : eXSockExcept { };
|
class eUnableToOpen2ndFile : public eXSockExcept { };
|
||||||
class eUnableToCreateFile : eXSockExcept { };
|
class eUnableToCreateFile : public eXSockExcept { };
|
||||||
class eUnableToDeleteFile : eXSockExcept { };
|
class eUnableToDeleteFile : public eXSockExcept { };
|
||||||
class eUnableToReadFile : eXSockExcept { };
|
class eUnableToReadFile : public eXSockExcept { };
|
||||||
class eUnableToWriteFile : eXSockExcept { };
|
class eUnableToWriteFile : public eXSockExcept { };
|
||||||
/* définition des exceptions ici */
|
/* définition des exceptions ici */
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
#include "XSock.h"
|
#include "xsock.h"
|
||||||
|
|
||||||
#define VERBOSE 0
|
#define VERBOSE 0
|
||||||
#define VERBOSETCP 0
|
#define VERBOSETCP 0
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
#include "XSock.h"
|
#include "xsock.h"
|
||||||
|
|
||||||
// constantes utilisées dans XSock.cpp et dans XSockUDP.cpp
|
// constantes utilisées dans XSock.cpp et dans XSockUDP.cpp
|
||||||
#define NBPORTSPUB 64512
|
#define NBPORTSPUB 64512
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
#include "XSock.h"
|
#include "xsock.h"
|
||||||
|
|
||||||
// constantes utilisées dans XSock.cpp et dans XSockUDP_RELIABLE.cpp
|
// constantes utilisées dans XSock.cpp et dans XSockUDP_RELIABLE.cpp
|
||||||
#define NBPORTSPUB 64512
|
#define NBPORTSPUB 64512
|
||||||
|
|
Loading…
Reference in a new issue