forked from eventials/OSXVnc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRFBBundleProtocol.h
48 lines (32 loc) · 1.29 KB
/
RFBBundleProtocol.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// RFBBundleProtocol.h
// OSXvnc
//
// Created by Jonathan Gillaspie on Fri Aug 22 2003.
// Copyright (c) 2003 RedstoneSoftware. All rights reserved.
//
#import "rfbserver.h"
// These work on the class but they aren't defined anywhere
@interface NSObject (ClassPerform)
+ performSelector:(SEL) aSelector;
+ performSelector:(SEL) aSelector withObject: (id) anObject;
@end
@protocol RFBBundleProtocol
+ (void) rfbUsage;
/* Print stuff to stderr if you want to add usage information */
+ (void) rfbStartup: (rfbserver *) theServer;
/* This method is called during startup and should display with NSLog some information about the Bundle */
/* You can use NSProcessInfo to get access to the startup arguments */
+ (void) rfbRunning;
/* This method is called after all of the core services are started -- immediately before listening for connects */
+ (void) rfbPoll;
/* This method is called during each check the VNC system does for screen updates, etc. */
+ (void) rfbReceivedClientMessage;
/* This method is called immediately as each event is received */
+ (void) rfbShutdown;
/* This method is called when we go to shutdown the server */
@end
@interface NSProcessInfo (VNCExtension)
- (CGDirectDisplayID) CGMainDisplayID;
- (struct hostent *) getHostByName:(char *) host;
@end