![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
00001 /******************************************************************************** 00002 * * 00003 * S o c k e t C l a s s * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2005,2012 by Jeroen van der Zijp. All Rights Reserved. * 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 published by * 00010 * the Free Software Foundation; either version 3 of the License, or * 00011 * (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 * 00016 * GNU Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public License * 00019 * along with this program. If not, see <http://www.gnu.org/licenses/> * 00020 ********************************************************************************/ 00021 #ifndef FXSOCKET_H 00022 #define FXSOCKET_H 00023 00024 #ifndef FXIODEVICE_H 00025 #include "FXIODevice.h" 00026 #endif 00027 00028 00030 00031 00032 namespace FX { 00033 00034 00038 class FXAPI FXSocket : public FXIODevice { 00039 private: 00040 FXSocket(const FXSocket&); 00041 FXSocket &operator=(const FXSocket&); 00042 public: 00043 00045 FXSocket(){ } 00046 00048 FXSocket(FXInputHandle h,FXuint m); 00049 00051 virtual FXbool open(FXInputHandle h,FXuint m); 00052 00054 virtual FXival readBlock(void* data,FXival count); 00055 00057 virtual FXival writeBlock(const void* data,FXival count); 00058 00060 virtual FXbool close(); 00061 00063 virtual ~FXSocket(); 00064 }; 00065 00066 } 00067 00068 #endif
|
|