提交 fb0f61a530415e747398176d8fc62f01bb2ccb5c

作者 LJH 李佳桓
1 个父辈 7168eebe

add

正在显示 1 个修改的文件 包含 43 行增加0 行删除
  1 +/*
  2 + * Copyright 2007 Stephen Liu
  3 + * For license terms, see the file COPYING along with this library.
  4 + */
  5 +
  6 +#ifndef __sprequest_hpp__
  7 +#define __sprequest_hpp__
  8 +
  9 +#include "spporting.hpp"
  10 +
  11 +class SP_MsgDecoder;
  12 +
  13 +class SP_Request {
  14 +public:
  15 + SP_Request();
  16 + ~SP_Request();
  17 +
  18 + // default return SP_DefaultMsgDecoder
  19 + SP_MsgDecoder * getMsgDecoder();
  20 +
  21 + // set a special SP_MsgDecoder
  22 + void setMsgDecoder( SP_MsgDecoder * decoder );
  23 +
  24 + void setClientIP( const char * clientIP );
  25 + const char * getClientIP();
  26 +
  27 + void setClientPort( int port );
  28 + int getClientPort();
  29 +
  30 + void setServerIP( const char * ip );
  31 + const char * getServerIP();
  32 +
  33 +private:
  34 + SP_MsgDecoder * mDecoder;
  35 +
  36 + char mClientIP[ 32 ];
  37 + int mClientPort;
  38 +
  39 + char mServerIP[ 32 ];
  40 +};
  41 +
  42 +#endif
  43 +
... ...
注册登录 后发表评论