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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgSocketClient.cpp
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Source file of LgSocketClient.cpp
//----------------------------------------------------------------------------
#include "stdafx.h"
#include "LgSocketClient.h"
/*
template<class BASE_SOCKET>CLgSocketClient<BASE_SOCKET>::CLgSocketClient(){}
template<class BASE_SOCKET>CLgSocketClient<BASE_SOCKET>::~CLgSocketClient(){ Destroy();}
// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(CLgSocketClient, BASE_SOCKET) //{{AFX_MSG_MAP(CLgSocketClient)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()#endif // 0
template<class BASE_SOCKET>BOOL CLgSocketClient<BASE_SOCKET>::Create( LPCTSTR lpszHostAddress, UINT nHostPort ){ // create socket
if( !BASE_SOCKET::Create() ) return FALSE;
// establish connection with server
if( !BASE_SOCKET::Connect( lpszHostAddress, nHostPort ) ) { DWORD dwError = GetLastError(); switch( dwError ) { case WSAEWOULDBLOCK: break; default: return FALSE; } }
return TRUE;}
template<class BASE_SOCKET>void CLgSocketClient<BASE_SOCKET>::Destroy(){ // close socket
Close();}
*/
|