2005-11-01 20:37:34 +00:00
|
|
|
/* GSPortPrivate
|
|
|
|
Copyright (C) 2005 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
2007-09-14 11:36:11 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
2005-11-01 20:37:34 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-08 10:38:33 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
2005-11-01 20:37:34 +00:00
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
2007-09-14 11:36:11 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2005-11-01 20:37:34 +00:00
|
|
|
License along with this library; if not, write to the Free
|
2006-03-08 11:28:59 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
MA 02111 USA.
|
2005-11-01 20:37:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GSPortPrivate_h_
|
|
|
|
#define __GSPortPrivate_h_
|
|
|
|
|
2006-03-08 11:28:59 +00:00
|
|
|
/*
|
|
|
|
* Nameserver deregistration methods
|
|
|
|
*/
|
|
|
|
@interface NSPortNameServer (GNUstep)
|
|
|
|
- (NSArray*) namesForPort: (NSPort*)port; /* return all names for port */
|
|
|
|
- (BOOL) removePort: (NSPort*)port; /* remove all names for port */
|
|
|
|
- (BOOL) removePort: (NSPort*)port forName: (NSString*)name;
|
|
|
|
@end
|
|
|
|
|
2016-03-09 13:16:16 +00:00
|
|
|
#if defined(_WIN32)
|
2005-11-08 20:42:45 +00:00
|
|
|
@interface NSMessagePort(Private)
|
2005-11-10 22:40:57 +00:00
|
|
|
+ (id) newWithName: (NSString*)name;
|
2005-11-08 20:42:45 +00:00
|
|
|
- (id) initWithName: (NSString*)name;
|
|
|
|
- (NSString*) name;
|
|
|
|
- (void) receivedEventRead;
|
|
|
|
- (void) receivedEventWrite;
|
|
|
|
@end
|
|
|
|
#else
|
2005-11-01 20:37:34 +00:00
|
|
|
@class GSMessageHandle;
|
|
|
|
|
|
|
|
@interface NSMessagePort(Private)
|
|
|
|
- (int) _listener;
|
|
|
|
- (const unsigned char *) _name;
|
|
|
|
+ (NSMessagePort*) _portWithName: (const unsigned char *)socketName
|
|
|
|
listener: (BOOL)shouldListen;
|
|
|
|
- (void) addHandle: (GSMessageHandle*)handle forSend: (BOOL)send;
|
|
|
|
- (void) removeHandle: (GSMessageHandle*)handle;
|
|
|
|
@end
|
2016-03-09 13:16:16 +00:00
|
|
|
#endif /* _WIN32 */
|
2005-11-01 20:37:34 +00:00
|
|
|
|
|
|
|
@class GSTcpHandle;
|
|
|
|
|
|
|
|
@interface NSSocketPort (Private)
|
|
|
|
- (void) addHandle: (GSTcpHandle*)handle forSend: (BOOL)send;
|
|
|
|
- (GSTcpHandle*) handleForPort: (NSSocketPort*)recvPort
|
|
|
|
beforeDate: (NSDate*)when;
|
|
|
|
- (void) removeHandle: (GSTcpHandle*)handle;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|