readme.win32

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

WIN32
85
字号
          *** IMPORTANT *** This is a STABLE release of GNet 1.1 on Windows.This snapshot was compiled with extra development GNet code.That code has not been tested on windows. See README fora list of Experimental code.This release of GNet is links to libglib-2.0-0.dll.You will have to rebuild if you have a newer version.Join or checkout the mailing lists athttp://www.gnetlibrary.org/ for the mostup-to-date information.          *****************GNet README for Win32---------------------This document contains - General Win32 Specific Information - MINGW/GCC & CYGWIN Notes - MSVC 6.0 Notes - HACKING/TODO on Win32General Win32 Specific Information----------------------------------The Windows port requires either Windows 95 (with the Winsock2 patch)or better, or Windows NT (with Service Pack 4) or better. gnet_inetaddr_gethostname() can't handle hostnames over 256 chars.gnet_private_inetaddr_list_interfaces() does not support more than 10interfaces.Reminder that on windows, text files have extra "\r" in them where ason *NIX they do not. This will throw off SHA & MD5 if you don't filterthe extra characters out before calling those functions.MINGW/GCC & CYGWIN Notes------------------------Compiling GNet on windows with gcc/mingw is supported. [see http://mingw.sourceforge.net/] A makefile to build GNet is included in the zip. I have tested with Mingw 2.0.You can use/link GNet with gcc/mingw. A ".a" is included in the zip.A makefile is provided to compile the example and test programs.When compiling your program use the "-lws2_32 switch"example:gcc -g -Wall -mno-cygwin -mcpu=pentium -I../glib -I. -I../gnet -L../glib -L../gnet hostinfo.c -o hostinfo -lgnet-1.1 -lglib-2.0-0 -lws2_32MSVC 6.0 Notes--------------How to link your project to the Gnet DLL uing MSVC 6.0:Download the latest version of Glib for Win32 and copy the headerfiles and glib-X.Y.dll and glib-X.Y.lib to the gnet project folder. Dothe same for GNet. Remember change your project settings to includeglib-X.Y.lib gnet-X.Y.lib in the link tab.How to compile GNet with MSVC 6.0:Download the latest version of Glib for Win32 and copy the headerfiles and glib-X.Y.dll and glib-X.Y.lib to your project folder.Download the latest version of Gnet for Win32 and a .dsp file is provided to build the project.HACKING/TODO on Win32---------------------For a general description on how GNet for Win32 was implemented seehalfway down gnet-private.c.FIX: gnet_inetaddr_gethostname() so it can handle hostnames over 256 chars.FIX: gnet_private_inetaddr_list_interfaces() so it support more than10 Interfaces.

⌨️ 快捷键说明

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