Sockets-2.3.9.3
所属分类:网络编程
开发工具:Visual C++
文件大小:324KB
下载次数:86
上传日期:2010-09-15 21:08:11
上 传 者:
xibei4444
说明: C++ Sockets 是一个跨平台的 Sockets 库,实现包括 TCP、UDP、ICMP、SCTP 协议。已实现的应用协议包括有 SMTP、HTTP(S)、Ajp (1.3)。具有 SOCKS 客户端实现以及匿名 DNS ,支持 HTTP 的 GET/POST/PUT 以及 WebServer 的框架。
(C++ Sockets is a cross-platform Sockets library, implementation, including TCP, UDP, ICMP, SCTP protocol. Application Protocol has been implemented including SMTP, HTTP (S), Ajp (1.3). SOCKS client has achieved and anonymous DNS, support for HTTP' s GET/POST/PUT and the WebServer framework.)
文件列表:
Sockets-2.3.9.3 (0, 2010-07-14)
Sockets-2.3.9.3\EventTime.h (2245, 2010-02-10)
Sockets-2.3.9.3\HttpRequest.h (3744, 2010-02-10)
Sockets-2.3.9.3\XmlDocument.h (2122, 2010-02-10)
Sockets-2.3.9.3\SSLInitializer.h (2372, 2010-02-10)
Sockets-2.3.9.3\SocketStream.cpp (1989, 2010-02-10)
Sockets-2.3.9.3\HttpClientSocket.cpp (6167, 2010-07-14)
Sockets-2.3.9.3\HttpdSocket.cpp (7066, 2010-07-14)
Sockets-2.3.9.3\mkdot.sh (558, 2010-02-07)
Sockets-2.3.9.3\StreamSocket.cpp (3157, 2010-02-10)
Sockets-2.3.9.3\Event.h (2161, 2010-02-10)
Sockets-2.3.9.3\ajp13.h (3355, 2010-02-10)
Sockets-2.3.9.3\HttpRequest.cpp (8991, 2010-02-10)
Sockets-2.3.9.3\FileStream.h (1735, 2010-02-10)
Sockets-2.3.9.3\SocketHandlerThread.h (1804, 2010-03-24)
Sockets-2.3.9.3\HttpGetSocket.h (2106, 2010-02-10)
Sockets-2.3.9.3\HttpPutSocket.h (2530, 2010-02-10)
Sockets-2.3.9.3\SctpSocket.cpp (11881, 2010-02-10)
Sockets-2.3.9.3\HttpDebugSocket.cpp (3601, 2010-02-10)
Sockets-2.3.9.3\EventHandler.cpp (4629, 2010-03-24)
Sockets-2.3.9.3\HTTPSocket.cpp (11668, 2010-07-14)
Sockets-2.3.9.3\ResolvServer.h (2077, 2010-02-10)
Sockets-2.3.9.3\TcpSocket.h (11879, 2010-02-10)
Sockets-2.3.9.3\File.cpp (3410, 2010-07-14)
Sockets-2.3.9.3\SocketHandlerThread.cpp (1986, 2010-03-24)
Sockets-2.3.9.3\StreamWriter.cpp (2282, 2010-02-10)
Sockets-2.3.9.3\IEventHandler.h (2388, 2010-02-10)
Sockets-2.3.9.3\Base64.h (2400, 2010-07-14)
Sockets-2.3.9.3\HttpPostSocket.cpp (7894, 2010-07-14)
Sockets-2.3.9.3\UdpSocket.h (7643, 2010-02-17)
Sockets-2.3.9.3\Project (0, 2010-07-14)
Sockets-2.3.9.3\Project\Sockets.dsp (11192, 2010-07-14)
Sockets-2.3.9.3\Project\echoserver.dsp (4478, 2010-02-07)
Sockets-2.3.9.3\Project\stressclient.dsp (4388, 2010-02-07)
Sockets-2.3.9.3\Project\Test.dsp (4638, 2010-02-07)
Sockets-2.3.9.3\Project\Sockets.dsw (1202, 2010-02-07)
Sockets-2.3.9.3\IBase.h (1100, 2010-02-10)
Sockets-2.3.9.3\IEventOwner.h (2334, 2010-02-10)
Sockets-2.3.9.3\HttpdForm.cpp (14486, 2010-07-14)
... ...
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
近期下载者:
相关文件:
收藏者: