00001 #ifndef __CHM_LLP_CONNECTION_H__ 00002 #define __CHM_LLP_CONNECTION_H__ 00003 //-------------------------------------------------------------------------- 00004 // Copyright (C) 1997-2009 iNTERFACEWARE Inc. All Rights Reserved. 00005 // 00006 // Class: CHMllpConnection 00007 // 00008 // Description: 00009 // 00010 // Class interface definition. 00011 // 00012 // This file is automatically generated. 00013 // DO NOT EDIT. 00014 // 00015 // Author: codegen2 00016 // Date: Tuesday, August 11th, 2009 @ 05:32:24 PM 00017 // Revision: $Revision: 1.3 $ 00018 // 00019 // Last Edit Date: $Date: 2009-08-11 21:35:20 $ 00020 // Source: $Source: /home/cvs/cvsroot/CHM/CHMllpConnection.h,v $ 00021 //-------------------------------------------------------------------------- 00022 00023 #include <CHM/CHMminimumInclude.h> 00024 00025 #ifndef __CHM_CONNECTION_HANDLE_H__ 00026 #define __CHM_CONNECTION_HANDLE_H__ 00027 typedef void* CHMconnectionHandle; 00028 #endif 00029 00030 00041 class CHMllpConnection 00042 { 00043 public: 00045 CHMllpConnection(); 00046 CHMllpConnection(const CHMllpConnection& Orig); 00047 CHMllpConnection(CHMconnectionHandle Handle); 00048 00050 virtual ~CHMllpConnection(); 00051 00053 CHMllpConnection& operator=(const CHMllpConnection& Orig); 00054 00056 CHMconnectionHandle GetHandle() const { return Handle; } 00057 00058 00074 const char* RemoteHostName() const; 00075 00076 00086 CHMint32 Id() const; 00087 00088 00096 CHMint32 RemoteIpAddress() const; 00097 00098 00105 const char* RemoteIpAddressAsString() const; 00106 00107 00126 void TransmitMessage(const char* Message); 00127 00128 00150 void Disconnect(); 00151 00152 00163 void HardDisconnect(); 00164 00165 00166 private: 00167 CHMconnectionHandle Handle; 00168 }; 00169 00170 #endif // end of defensive include