1
/* Interface for WindowsFileHandle for GNUStep
2
Copyright (C) 1997 Free Software Foundation, Inc.
4
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
7
This file is part of the GNUstep Base Library.
9
This library is free software; you can redistribute it and/or
10
modify it under the terms of the GNU Library General Public
11
License as published by the Free Software Foundation; either
12
version 2 of the License, or (at your option) any later version.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Library General Public License for more details.
19
You should have received a copy of the GNU Library General Public
20
License along with this library; if not, write to the Free
21
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
24
#ifndef __WindowsFileHandle_h_GNUSTEP_BASE_INCLUDE
25
#define __WindowsFileHandle_h_GNUSTEP_BASE_INCLUDE
27
#include <Foundation/NSFileHandle.h>
28
#include <Foundation/NSArray.h>
29
#include <Foundation/NSDictionary.h>
30
#include <Foundation/NSRunLoop.h>
36
@interface WindowsFileHandle : NSFileHandle <RunLoopEvents>
49
NSMutableDictionary *readInfo;
51
NSMutableArray *writeInfo;
58
- (id)initAsClientAtAddress:address
61
- (id)initAsClientInBackgroundAtAddress:address
65
- (id)initAsServerAtAddress:address
68
- (id)initForReadingAtPath:(NSString*)path;
69
- (id)initForWritingAtPath:(NSString*)path;
70
- (id)initForUpdatingAtPath:(NSString*)path;
71
- (id)initWithStandardError;
72
- (id)initWithStandardInput;
73
- (id)initWithStandardOutput;
74
- (id)initWithNullDevice;
81
- (void)ignoreReadDescriptor;
82
- (void)ignoreWriteDescriptor;
83
- (void)setNonBlocking:(BOOL)flag;
84
- (void)postReadNotification;
85
- (void)postWriteNotification;
86
- (void)receivedEvent: (void*)data
87
type: (RunLoopEventType)type
89
forMode: (NSString*)mode;
90
- (NSDate*)timedOutEvent: (void*)data
91
type: (RunLoopEventType)type
92
forMode: (NSString*)mode;
93
- (void)watchReadDescriptorForModes:(NSArray*)modes;
94
- (void)watchWriteDescriptor;
98
#endif /* __WindowsFileHandle_h_GNUSTEP_BASE_INCLUDE */