source: vendor/synergy/1.3.1/lib/net/IDataSocket.cpp

Last change on this file was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.2 KB
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2002 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include "IDataSocket.h"
16
17//
18// IDataSocket
19//
20
21CEvent::Type IDataSocket::s_connectedEvent = CEvent::kUnknown;
22CEvent::Type IDataSocket::s_failedEvent = CEvent::kUnknown;
23
24CEvent::Type
25IDataSocket::getConnectedEvent()
26{
27 return CEvent::registerTypeOnce(s_connectedEvent,
28 "IDataSocket::connected");
29}
30
31CEvent::Type
32IDataSocket::getConnectionFailedEvent()
33{
34 return CEvent::registerTypeOnce(s_failedEvent,
35 "IDataSocket::failed");
36}
37
38void
39IDataSocket::close()
40{
41 // this is here to work around a VC++6 bug. see the header file.
42 assert(0 && "bad call");
43}
44
45void*
46IDataSocket::getEventTarget() const
47{
48 // this is here to work around a VC++6 bug. see the header file.
49 assert(0 && "bad call");
50 return NULL;
51}
Note: See TracBrowser for help on using the repository browser.