LCOV - code coverage report
Current view: top level - Core/Debug - OODebugTCPConsoleClient.h (source / functions) Hit Total Coverage
Test: coverxygen.info Lines: 0 10 0.0 %
Date: 2025-05-28 07:50:54 Functions: 0 0 -

          Line data    Source code
       1           0 : /*
       2             : 
       3             : OODebugTCPConsoleClient.h
       4             : 
       5             : 
       6             : Oolite Debug Support
       7             : 
       8             : Copyright (C) 2007-2013 Jens Ayton
       9             : 
      10             : Permission is hereby granted, free of charge, to any person obtaining a copy
      11             : of this software and associated documentation files (the "Software"), to deal
      12             : in the Software without restriction, including without limitation the rights
      13             : to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
      14             : copies of the Software, and to permit persons to whom the Software is
      15             : furnished to do so, subject to the following conditions:
      16             : 
      17             : The above copyright notice and this permission notice shall be included in all
      18             : copies or substantial portions of the Software.
      19             : 
      20             : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
      21             : IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      22             : FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
      23             : AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      24             : LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
      25             : OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      26             : SOFTWARE.
      27             : 
      28             : */
      29             : 
      30             : #import "OOCocoa.h"
      31             : #import "OODebuggerInterface.h"
      32             : 
      33             : @class OODebugMonitor;
      34             : 
      35             : 
      36           0 : typedef enum
      37             : {
      38             :         kOOTCPClientNotConnected,
      39             :         kOOTCPClientStartedConnectionStage1,
      40             :         kOOTCPClientStartedConnectionStage2,
      41             :         kOOTCPClientConnected,
      42             :         kOOTCPClientConnectionRefused,
      43             :         kOOTCPClientDisconnected
      44             : } OOTCPClientConnectionStatus;
      45             : 
      46             : 
      47           0 : @interface OODebugTCPConsoleClient: NSObject <OODebuggerInterface>
      48             : {
      49             : @private
      50             :         NSHost                                          *_host;
      51           0 :         NSOutputStream                          *_outStream;
      52           0 :         NSInputStream                           *_inStream;
      53           0 :         OOTCPClientConnectionStatus     _status;
      54           0 :         OODebugMonitor                          *_monitor;
      55           0 :         struct OOTCPStreamDecoder       *_decoder;
      56           0 : }
      57             : 
      58             : - (id) initWithAddress:(NSString *)address      // Pass nil for localhost
      59           0 :                                   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

Generated by: LCOV version 1.14