48
53
virtual bool isConnected()= 0;
52
54
virtual void setError(char error)= 0;
53
55
virtual bool haveError(void)= 0;
54
56
virtual bool wasAborted(void)= 0;
56
57
virtual bool haveMoreData(void)= 0;
57
58
virtual bool isReading(void)= 0;
58
59
virtual bool isWriting(void)= 0;
59
60
virtual bool setFileDescriptor(int fd)=0;
60
61
virtual int fileDescriptor(void)=0;
62
62
virtual bool authenticate(void)=0;
63
63
virtual bool readCommand(char **packet, uint32_t *packet_length)=0;
64
64
virtual void sendOK()= 0;