Net.h | Net.h | |||
---|---|---|---|---|
skipping to change at line 52 | skipping to change at line 52 | |||
class NetHandler; | class NetHandler; | |||
class Net { | class Net { | |||
public: | public: | |||
Net(int msgBufSize, int sizeBufLen); | Net(int msgBufSize, int sizeBufLen); | |||
~Net(); | ~Net(); | |||
NetHandler* connect(const Chain& hostname, int port); | NetHandler* connect(const Chain& hostname, const Chain& service); | |||
NetHandler* connect(const Chain& hostname, int port, int timeout); | NetHandler* connect(const Chain& hostname, const Chain& service, int ti | |||
meout); | ||||
void serve(int port); | void serve(int port); | |||
void serve(const Chain& hostname, const Chain& service); | ||||
NetHandler* nextRequest(int timeout); | NetHandler* nextRequest(int timeout); | |||
void removeHandle(NetHandler *pN); | void removeHandle(NetHandler *pN); | |||
private: | private: | |||
int _msgBufSize; | int _msgBufSize; | |||
int _sizeBufLen; | int _sizeBufLen; | |||
int _csock; | int _csock; | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 4 lines changed or added | |||