gnet.c

来自「GNet是一个简单的网络库。它是目标定向的」· C语言 代码 · 共 50 行

C
50
字号
/* GNet - Networking library * Copyright (C) 2000  David Helder * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the  * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA  02111-1307, USA. */#include "gnet-private.h"#include "gnet.h"const guint gnet_major_version = GNET_MAJOR_VERSION;const guint gnet_minor_version = GNET_MINOR_VERSION;const guint gnet_micro_version = GNET_MICRO_VERSION;const guint gnet_interface_age = GNET_INTERFACE_AGE;const guint gnet_binary_age = GNET_BINARY_AGE;/** *  gnet_init: * *  Initializes the GNet library.  This should be called at the *  beginning of any GNet program and before any call to gtk_init(). * **/voidgnet_init (void){#ifdef G_THREADS_ENABLED#ifndef GNET_WIN32   if (!g_thread_supported ())     g_thread_init (NULL);#endif#endif /* G_THREADS_ENABLED */}

⌨️ 快捷键说明

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