/* * Copyright (c) 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _ILLP_SOCKET_H #define _ILLP_SOCKET_H #pragma interface #include class ILLPSocket: public Socket { public: ILLPSocket(const char *address, const char *param, size_t parlen); ILLPSocket(); virtual ~ILLPSocket(); public: bool connect(flags_t mode); Socket *accept(flags_t mode); private: const flags_t _cap_plus = 0; const flags_t _cap_minus = 0; flags_t cap_plus() const { return _cap_plus; } flags_t cap_minus() const { return _cap_minus; } Socket *ctor(); static Socket *ctor(const char *address, const char *param = NULL, size_t parlen = 0); friend class Socket; // make ctor accessible private: // disallowed ILLPSocket(const ILLPSocket &); const ILLPSocket &operator=(const ILLPSocket &); }; #endif