[go: up one dir, main page]

Menu

[r999]: / trunk / VTS3 / ptp / WinPTP.h  Maximize  Restore  History

Download this file

37 lines (26 with data), 846 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// WinPTP.h: interface for the WinPTP class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_WINPTP_H__0BB57C93_26B8_4E78_8AF2_B4840ED415DF__INCLUDED_)
#define AFX_WINPTP_H__0BB57C93_26B8_4E78_8AF2_B4840ED415DF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BACnet.hpp"
#include "ptp.h"
// PTP supported by Xiao Shiyuan 2002-4-22
class WinPTP : public BACnetPort
{
friend UINT WinPTPThreadFunc( LPVOID pParam );
public:
WinPTP(const char *config);
~WinPTP(void);
void Indication( const BACnetNPDU &pdu );
void SendData( BACnetOctet *data, int len );
void InitPort(const char *port);
private:
bool m_Continue;
CWinThread *m_Thread;
};
typedef WinPTP *WinPTPPtr;
#endif // !defined(AFX_WINPTP_H__0BB57C93_26B8_4E78_8AF2_B4840ED415DF__INCLUDED_)