diff options
| author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2007-06-23 09:50:13 +0000 |
|---|---|---|
| committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2007-06-23 09:50:13 +0000 |
| commit | e9821411a588eec78e7d09897727047b35a5733b (patch) | |
| tree | 04c63bb9931e13fdaae6766968bc5a9690cbdeb7 /net/spserver/files/patch-speventcb.cpp | |
| parent | - Fix pkg-message (diff) | |
Add spserver,
it's a tcp server framework library written in C++ based on libevent.
Notes
Notes:
svn path=/head/; revision=194111
Diffstat (limited to 'net/spserver/files/patch-speventcb.cpp')
| -rw-r--r-- | net/spserver/files/patch-speventcb.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/spserver/files/patch-speventcb.cpp b/net/spserver/files/patch-speventcb.cpp new file mode 100644 index 000000000000..a0023bc95f9a --- /dev/null +++ b/net/spserver/files/patch-speventcb.cpp @@ -0,0 +1,29 @@ +--- speventcb.cpp.orig Mon Jun 18 12:41:11 2007 ++++ speventcb.cpp Mon Jun 18 12:42:31 2007 +@@ -14,6 +14,8 @@ + #include <stdlib.h> + #include <netinet/in.h> + #include <arpa/inet.h> ++#include <sys/uio.h> ++#include <unistd.h> + + #include "speventcb.hpp" + #include "spsession.hpp" +@@ -26,7 +28,7 @@ + #include "sprequest.hpp" + #include "spmsgblock.hpp" + +-#include "config.h" ++//#include "config.h" + #include "event_msgqueue.h" + #include "event.h" + +@@ -341,7 +343,7 @@ + char buffer[ 16 ] = { 0 }; + session->getInBuffer()->take( buffer, sizeof( buffer ) ); + syslog( LOG_WARNING, "session(%d.%d) status is %d, ignore [%s...] (%dB)", +- sid.mKey, sid.mSeq, session->getStatus(), buffer, session->getInBuffer()->getSize() ); ++ sid.mKey, sid.mSeq, session->getStatus(), buffer, (int)session->getInBuffer()->getSize() ); + session->getInBuffer()->reset(); + } + } |
