serverdemo.h
来自「C++ TCPIP and UDPIP library of classes」· C头文件 代码 · 共 80 行
H
80 行
/**C++ tcp/ip and udp/ip library and example programmCopyright (C) 2002 Marcin Caban 'Cabko' and Borys Wisniewski 'Boria'This program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, orany later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.http://www.gnu.org/Marcin Cabane-mail: cabko@polsl.gliwice.plphone: +48 501 452 123Borys Wisniewskie-mail: boria@polsl.gliwice.plphone: +48 503 065 996*/#include "server.h"#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>/** Class implements chat %server. \author Borys Wisniewski \date Mon Jan 28 19:25:28 2002*/class serverDemo : public server{ public:/** Default constructor. Initialize variables. \param service port number \author Borys Wisniewski \date Mon Jan 28 19:25:28 2002*/ serverDemo (char* service);/** Default destructor. Frees any allocated memory. \param service listen port number \author Borys Wisniewski \date Mon Jan 28 19:25:28 2002*/ ~serverDemo ();/** Starts the %server. \author Borys Wisniewski \date Mon Jan 28 19:25:28 2002*/ void start (); protected: private:/** port number*/ char* service;/** last recived data*/ char* packet;};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?