| 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 |  | 
|---|
| 21 | CEvent::Type                    IDataSocket::s_connectedEvent = CEvent::kUnknown; | 
|---|
| 22 | CEvent::Type                    IDataSocket::s_failedEvent    = CEvent::kUnknown; | 
|---|
| 23 |  | 
|---|
| 24 | CEvent::Type | 
|---|
| 25 | IDataSocket::getConnectedEvent() | 
|---|
| 26 | { | 
|---|
| 27 | return CEvent::registerTypeOnce(s_connectedEvent, | 
|---|
| 28 | "IDataSocket::connected"); | 
|---|
| 29 | } | 
|---|
| 30 |  | 
|---|
| 31 | CEvent::Type | 
|---|
| 32 | IDataSocket::getConnectionFailedEvent() | 
|---|
| 33 | { | 
|---|
| 34 | return CEvent::registerTypeOnce(s_failedEvent, | 
|---|
| 35 | "IDataSocket::failed"); | 
|---|
| 36 | } | 
|---|
| 37 |  | 
|---|
| 38 | void | 
|---|
| 39 | IDataSocket::close() | 
|---|
| 40 | { | 
|---|
| 41 | // this is here to work around a VC++6 bug.  see the header file. | 
|---|
| 42 | assert(0 && "bad call"); | 
|---|
| 43 | } | 
|---|
| 44 |  | 
|---|
| 45 | void* | 
|---|
| 46 | IDataSocket::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.