IDataSocket.cpp

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2002 Chris Schoeneman
00004  * 
00005  * This package is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * found in the file COPYING that should have accompanied this file.
00008  * 
00009  * This package is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  */
00014 
00015 #include "IDataSocket.h"
00016 
00017 //
00018 // IDataSocket
00019 //
00020 
00021 CEvent::Type            IDataSocket::s_connectedEvent = CEvent::kUnknown;
00022 CEvent::Type            IDataSocket::s_failedEvent    = CEvent::kUnknown;
00023 
00024 CEvent::Type
00025 IDataSocket::getConnectedEvent()
00026 {
00027     return CEvent::registerTypeOnce(s_connectedEvent,
00028                             "IDataSocket::connected");
00029 }
00030 
00031 CEvent::Type
00032 IDataSocket::getConnectionFailedEvent()
00033 {
00034     return CEvent::registerTypeOnce(s_failedEvent,
00035                             "IDataSocket::failed");
00036 }
00037 
00038 void
00039 IDataSocket::close()
00040 {
00041     // this is here to work around a VC++6 bug.  see the header file.
00042     assert(0 && "bad call");
00043 }
00044 
00045 void*
00046 IDataSocket::getEventTarget() const
00047 {
00048     // this is here to work around a VC++6 bug.  see the header file.
00049     assert(0 && "bad call");
00050     return NULL;
00051 }

Generated on Fri Nov 6 00:18:46 2009 for synergy-plus by  doxygen 1.4.7