spnetkit 是一个开源的c++ socket的库,封装实现了TCP、UDP、HTTP、POP3、STMP等常用协议,比较简单,刚好可以拿来学习。
这里它的简介
/***********************************************************************************/
spnetkit README
1.Introduction
spnetkit is a C++ wrapper for BSD-style sockets. It implements the
TCP, UDP, SSL transport layer protocols. Implemented application layer
protocols are HTTP client, SMTP client, POP3 client. Features include
inifile reader, base64 codec.
The spnetkit code was developed under Linux, but has also been tested
under Solaris.
You can get the code from the spnetkit home page:
http://code.google.com/p/spnetkit/
2.Building
To build libspnetkit.so, type
$ cd spnetkit
$ make
This will build all the targets include examples.
Before building libspnetkit_s.so, Op