server.c

来自「Linux 下的socket客户端服务端代码」· C语言 代码 · 共 46 行

C
46
字号
/***************************************************************************main.c  -  description-------------------begin                : Wed May 21 00:26:57 HKT 2003copyright            : (C) |YEAR| by ho2003bsemail                : honeycombs@sina.com***************************************************************************//****************************************************************************                                                                         **   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.                                   **                                                                         ****************************************************************************/#ifdef HAVE_CONFIG_H#include <config.h>#endif#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <sys/time.h>#include "serverdlg.h"int main(int argc, char *argv[]){        int ret=0;        ret=Server_Open();    if(!ret)        return 1;        printf("\n Press any key to quit...");        input_timeout(STDIN_FILENO,3600);        Server_Close();    return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?