CMGDK r49-rc2
|
#include <hgl/network/TCPSocket.H>
#include <hgl/type/RingBuffer.H>
#include <hgl/stream/MemStream.H>
#include <hgl/loginfo.h>
#include <hgl/other.h>
#include <hgl/hgl.h>
名字空间 | |
namespace | hgl |
__MAKE_HGL__&&!__MAKE_PLUGIN__ | |
namespace | hgl::network |
网络相关处理模块名字空间 | |
宏定义 | |
#define | TCPSOCKET_SEND_START(send_size) |
#define | TCPSOCKET_SEND_END(send_size) |
#define | TCPSOCKET_RECV_START |
#define | TCPSOCKET_RECV_END(recv_size) |
#define TCPSOCKET_RECV_END | ( | recv_size | ) |
RecvEnd(recv_size); \
return(recv_size);
#define TCPSOCKET_RECV_START |
HGL_PACKET_SIZE read_size=RecvStart(); \ \ if(read_size<=0) \ return(-1);
#define TCPSOCKET_SEND_END | ( | send_size | ) |
SendEnd(send_size); \ return(true); \ } \ \ SendEnd(0); \ return(false);
#define TCPSOCKET_SEND_START | ( | send_size | ) |
const HGL_PACKET_SIZE write_size=SendStart(); \ \ if(write_size<=0) \ return(false); \ \ if(write_size>=send_size) \ {