NetHandler.h | NetHandler.h | |||
---|---|---|---|---|
skipping to change at line 73 | skipping to change at line 73 | |||
bool recvAck(); | bool recvAck(); | |||
void sendChar(char c); | void sendChar(char c); | |||
char recvChar(); | char recvChar(); | |||
char* getMsg(); | char* getMsg(); | |||
int getMsgSize(); | int getMsgSize(); | |||
void setMsg(char* msg, int size); | void setMsg(char* msg, int size); | |||
int concatPos(); | ||||
void concatReset(); | ||||
void concatAdd(const Chain& s); | ||||
void concatAdd(char* msg, int size); | ||||
void disconnect(); | void disconnect(); | |||
NetHandler& operator = ( const NetHandler& nh); | NetHandler& operator = ( const NetHandler& nh); | |||
bool operator == ( const NetHandler& nh) const; | bool operator == ( const NetHandler& nh) const; | |||
private: | private: | |||
char* _msgBuf; | char* _msgBuf; | |||
int _msgBufSize; | int _msgBufSize; | |||
int _msgSize; | int _msgSize; | |||
int _sizeInfoLen; | int _sizeInfoLen; | |||
int _socket; | int _socket; | |||
int _concatPos; | ||||
}; | }; | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added | |||
Tokenizer.h | Tokenizer.h | |||
---|---|---|---|---|
skipping to change at line 48 | skipping to change at line 48 | |||
#include "Chain.h" | #include "Chain.h" | |||
// CLASS DEFINITION | // CLASS DEFINITION | |||
class Tokenizer { | class Tokenizer { | |||
public: | public: | |||
Tokenizer(const Chain& tokenStream, const Chain& sep, char quote = '\'' , char esc = '\\'); | Tokenizer(const Chain& tokenStream, const Chain& sep, char quote = '\'' , char esc = '\\'); | |||
Tokenizer(char* buf, int len, const Chain& sep, char quote = '\'', char esc = '\\'); | ||||
~Tokenizer(); | ~Tokenizer(); | |||
bool nextToken(Chain& token); | bool nextToken(Chain& token); | |||
bool getTail(Chain& token); | bool getTail(Chain& token); | |||
int numAhead() const; | int numAhead() const; | |||
void reset(char* buf, int len); | ||||
Tokenizer& operator = (const Tokenizer& t); | Tokenizer& operator = (const Tokenizer& t); | |||
private: | private: | |||
bool checkSeparator(); | ||||
bool _isLocal; | ||||
char *_streamBuf; | ||||
int _bufLen; | ||||
Chain _tokenStream; | Chain _tokenStream; | |||
Chain _sep; | Chain _sep; | |||
char _quote; | char _quote; | |||
char _esc; | char _esc; | |||
int _lower; | int _lower; | |||
int _upper; | int _upper; | |||
}; | }; | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 9 lines changed or added | |||