Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OODebugTCPConsoleClient.h
Go to the documentation of this file.
1/*
2
3OODebugTCPConsoleClient.h
4
5
6Oolite Debug Support
7
8Copyright (C) 2007-2013 Jens Ayton
9
10Permission is hereby granted, free of charge, to any person obtaining a copy
11of this software and associated documentation files (the "Software"), to deal
12in the Software without restriction, including without limitation the rights
13to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14copies of the Software, and to permit persons to whom the Software is
15furnished to do so, subject to the following conditions:
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26SOFTWARE.
27
28*/
29
30#import "OOCocoa.h"
32
33@class OODebugMonitor;
34
35
45
46
48{
49@private
50 NSHost *_host;
51 NSOutputStream *_outStream;
52 NSInputStream *_inStream;
57
58- (id) initWithAddress:(NSString *)address // Pass nil for localhost
59 port:(uint16_t)port; // Pass 0 for default port
60
61@end
62
63
64#if OOLITE_MAC_OS_X
65
66/*
67 Declare conformance to NSStreamDelegate, which is a formal protocol starting
68 in the Mac OS X 10.6 SDK. At the time of writing, it's still an informal
69 protocol in GNUstep trunk. -- Ahruman 2012-01-07
70*/
71@interface OODebugTCPConsoleClient (NSStreamDelegate) <NSStreamDelegate>
72@end
73
74#endif
OOTCPClientConnectionStatus
@ kOOTCPClientStartedConnectionStage2
@ kOOTCPClientConnected
@ kOOTCPClientNotConnected
@ kOOTCPClientStartedConnectionStage1
@ kOOTCPClientConnectionRefused
@ kOOTCPClientDisconnected
OOTCPClientConnectionStatus _status
struct OOTCPStreamDecoder * _decoder