Sockets-2.3.7

所属分类:网络编程
开发工具:Visual C++
文件大小:309KB
下载次数:8
上传日期:2010-01-16 10:39:44
上 传 者chishou
说明:  socket 开源库,C++编写。 这个库是根据GNU GPL的,根据现有的条件 额外豁免的编译,链接和/或使用OpenSSL的 是不允许的。
(socket open-source library, C++ to prepare. This library is based on GNU GPL, according to an additional exemption of existing conditions, compile, link and/or using OpenSSL is allowed.)

文件列表:
Sockets-2.3.7 (0, 2009-10-11)
Sockets-2.3.7\EventTime.h (2245, 2009-08-25)
Sockets-2.3.7\HttpRequest.h (3744, 2009-10-10)
Sockets-2.3.7\XmlDocument.h (2122, 2009-08-25)
Sockets-2.3.7\SSLInitializer.h (2372, 2009-08-25)
Sockets-2.3.7\SocketStream.cpp (1989, 2009-08-25)
Sockets-2.3.7\HttpClientSocket.cpp (6033, 2009-10-10)
Sockets-2.3.7\HttpdSocket.cpp (6789, 2009-10-10)
Sockets-2.3.7\mkdot.sh (558, 2008-05-07)
Sockets-2.3.7\StreamSocket.cpp (3635, 2009-08-25)
Sockets-2.3.7\Event.h (2161, 2009-08-25)
Sockets-2.3.7\ajp13.h (3355, 2009-08-25)
Sockets-2.3.7\HttpRequest.cpp (8991, 2009-10-10)
Sockets-2.3.7\FileStream.h (1735, 2009-08-25)
Sockets-2.3.7\HttpGetSocket.h (2106, 2009-08-25)
Sockets-2.3.7\HttpPutSocket.h (2530, 2009-08-25)
Sockets-2.3.7\SctpSocket.cpp (11881, 2009-08-25)
Sockets-2.3.7\HttpDebugSocket.cpp (3601, 2009-10-10)
Sockets-2.3.7\EventHandler.cpp (5162, 2009-10-10)
Sockets-2.3.7\HTTPSocket.cpp (11384, 2009-10-10)
Sockets-2.3.7\ResolvServer.h (2077, 2009-08-25)
Sockets-2.3.7\TcpSocket.h (11787, 2009-08-25)
Sockets-2.3.7\File.cpp (3084, 2009-08-25)
Sockets-2.3.7\StreamWriter.cpp (2282, 2009-08-25)
Sockets-2.3.7\IEventHandler.h (2388, 2009-08-25)
Sockets-2.3.7\Base64.h (2323, 2009-08-25)
Sockets-2.3.7\HttpPostSocket.cpp (7827, 2009-10-10)
Sockets-2.3.7\UdpSocket.h (7643, 2009-08-25)
Sockets-2.3.7\Project (0, 2009-10-11)
Sockets-2.3.7\Project\Sockets.dsp (10770, 2008-06-26)
Sockets-2.3.7\Project\echoserver.dsp (4478, 2007-04-21)
Sockets-2.3.7\Project\stressclient.dsp (4388, 2007-04-21)
Sockets-2.3.7\Project\Test.dsp (4638, 2007-04-21)
Sockets-2.3.7\Project\Sockets.dsw (1202, 2007-04-21)
Sockets-2.3.7\IBase.h (1100, 2008-12-20)
Sockets-2.3.7\IEventOwner.h (2334, 2009-08-25)
Sockets-2.3.7\HttpdForm.cpp (14060, 2009-10-10)
Sockets-2.3.7\Project.net (0, 2009-10-11)
Sockets-2.3.7\Project.net\Sockets (0, 2009-10-11)
... ...

C++ Sockets Library :: installation instructions Unix (and Cygwin/Mingw on windows) ================================== 1. Change the 'PLATFORM =' line in Makefile Possible values are linux-x86-32 win32-cygwin solaris9-sparc-*** macosx solaris8 2. If you want to use ssl encrypted socket communication, the library has support for the third-party library openssl. If necessary, add the following include directory to Makefile: INCLUDE = -I/include The openssl include directory contains only one directory named 'openssl', in which all header files can be found. OpenSSL support is enabled by default. If you don't need encrypted communications, make sure to comment out this line in the file 'sockets-config.h': #define HAVE_OPENSSL 3. If you really need thread-safe dns lookups, and your operating has support for *addrinfo and *nameinfo function calls, make sure this line in 'sockets-config.h' is commented: #define NO_GETADDRINFO By default, dns lookups using getaddrinfo/getnameinfo is disabled. 4. If your operating system supports SCTP, there might be a slight chance the sctp code in the library works. Uncomment this line in 'sockets-config.h' to try: //#define USE_SCTP 5. If you need IPv6 support, uncomment this line in 'sockets-config.h': //#define ENABLE_IPV6 6. Type 'make' 7. If all builds ok, you'll find the static library file 'libSockets.a' in the build directory. When compiling the application, any flags used when compiling the library also needs to be present when including the library .h files. All flags can be retrieved using the 'Sockets-config' executable. Add something like this in your Makefile: CFLAGS += `Sockets-config` CPPFLAGS += `Sockets-config` When linking an application using the library, make sure the object and library files are in correct order on your link command line: First: Application object files 2nd: -lSockets 3rd: openssl libraries Finally: Everything else, ending with -lpthread windows ======= Project files for various IDE's can be found here: Project/ Visual studio 6.0 Project.net/ Visual studio .NET DevCpp/ Dev C++ Please see steps 2-5 above for some details on configuring the library. When linking on cygwin/mingw, add the following libraries: -lwsock32 -lws2_32

近期下载者

相关文件


收藏者