//
//  Copyright © 2003, RESON Inc. All Rights Reserved.
//
//  No part of this file may be reproduced or transmitted in any form or by
//  any means, electronic or mechanical, including photocopy, recording, or
//  information storage or retrieval system, without permission in writing
//  from RESON Inc.
//
//  Filename:   7kNetworkInterface.h
//
//  Project:    6046
//
//  Author(s):  W. Arcus
//
//  Purpose:    
//
//  Notes:      
//

#if !defined(AFX_7KNETWORKINTERFACE_H__C98D04AE_F5DE_4B12_ADEA_C84A9E6402F9__INCLUDED_)
#define AFX_7KNETWORKINTERFACE_H__C98D04AE_F5DE_4B12_ADEA_C84A9E6402F9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "7kSonarInterface.h"

class C7kNetworkInterface : public C7kSonarInterface
{
public:

                            C7kNetworkInterface     (   void );
    virtual                ~C7kNetworkInterface     (   void );

    virtual bool            SetConnectionParameters (   const unsigned long        &rulPortOut,
                                                        const unsigned long        &rulPortIn,
                                                        const char                 *pszAddress );

    virtual bool            Connect                 (   void );

    virtual bool            Disconnect              (   void );

    bool                    Write7kRecord           (   const BYTE          *pby7kRecord,
                                                        const unsigned long &rulBytes );

                            operator HANDLE         (   void ) const;


protected:

    ///////////////
    // Services.

    bool                    HandleDataFromSonar     (   BYTE                       *pby7kRecord,
                                                        unsigned long              &rulRecordBytes,
                                                        const unsigned long        &rulMaxBufferSize,
                                                        const bool                 &rbResetEvent       = false );

private:

                            C7kNetworkInterface     (   const C7kNetworkInterface  &rRhs );     // Not implemented thus private.
    C7kNetworkInterface &   operator =              (   const C7kNetworkInterface  &rRhs );     // Not implemented thus private.

};

#endif // !defined(AFX_7KNETWORKINTERFACE_H__C98D04AE_F5DE_4B12_ADEA_C84A9E6402F9__INCLUDED_)
