j_message.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BARRYJDWP_MESSAGE_H__
00023 #define __BARRYJDWP_MESSAGE_H__
00024
00025 #include "j_jdwp.h"
00026
00027 namespace Barry { namespace JDWP {
00028
00029 class JDWMessage
00030 {
00031 private:
00032 int m_socket;
00033
00034 JDWP m_jdwp;
00035
00036 void RawSend(Barry::Data &send, int timeout = -1);
00037 bool RawReceive(Barry::Data &receive, int timeout = -1);
00038
00039 protected:
00040
00041 public:
00042 JDWMessage(int socket);
00043 ~JDWMessage();
00044
00045 void Send(Barry::Data &send, int timeout = -1);
00046 void Send(Barry::Data &send, Barry::Data &receive, int timeout = -1);
00047 bool Receive(Barry::Data &receive, int timeout = -1);
00048 };
00049
00050 }}
00051
00052 #endif
00053