• Main Page
  • Classes
  • Files
  • File List

IDataSocket.cpp

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

Generated on Sun May 19 2013 00:00:05 for Synergy by  doxygen 1.7.1