Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

65 lines
1.6 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 09/11/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgGatewaySocket.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of LgGatewaySocket.h
//----------------------------------------------------------------------------
#ifndef __LG__GATEWAY__SOCKET__H__INCLUDED__
#define __LG__GATEWAY__SOCKET__H__INCLUDED__
#include "..\Socket\LgSocket.h"
#include "..\LgImageJPEG.h"
#pragma once
typedef struct LG_REPORT_PACKET
{
INT nLength;
BYTE bType;
}LG_REPORT_PACKET, *PLG_REPORT_PACKET;
class CLgReportSocket :
public CLgSocket
{
public:
CLgReportSocket();
virtual ~CLgReportSocket();
public:
virtual int Send( const void* lpBuf, int nBufLen, int nFlags = 0 );
int Send2( const void* lpBuf1, int nBufLen1, const void* lpBuf2, int nBufLen2 );
public:
BOOL GetTransferInfo( PLARGE_INTEGER pTX, PLARGE_INTEGER pRX );
protected:
virtual void OnReceive( int nErrorCode );
virtual void OnSend( int nErrorCode );
virtual void OnClose( int nErrorCode );
private:
virtual void Dispatch( PLG_REPORT_PACKET pPacket );
protected:
virtual void OnPacket( PLG_REPORT_PACKET pReceivePacket ) {}
private:
PBYTE m_pBuffer;
INT m_nCount;
private:
CLgProtectedFastStream<BYTE,20> m_OutputStream;
private:
LARGE_INTEGER m_liTransferTX;
LARGE_INTEGER m_liTransferRX;
};
#endif