1998-10-29 12:50:23 +00:00
|
|
|
/* Interface of NSPortNameServer class for Distributed Objects
|
1999-09-21 19:07:27 +00:00
|
|
|
Copyright (C) 1998,1999 Free Software Foundation, Inc.
|
1998-10-29 12:50:23 +00:00
|
|
|
|
|
|
|
Written by: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|
|
|
Created: October 1998
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
1999-09-09 02:56:20 +00:00
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
1998-10-29 12:50:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NSPortNameServer_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSPortNameServer_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
|
|
|
|
#include <Foundation/NSObject.h>
|
|
|
|
|
1999-09-21 19:07:27 +00:00
|
|
|
@class NSPort, NSString, NSMutableArray;
|
1998-10-29 12:50:23 +00:00
|
|
|
|
|
|
|
@interface NSPortNameServer : NSObject
|
|
|
|
{
|
1999-09-16 07:21:34 +00:00
|
|
|
NSMapTable *_portMap; /* Registered ports information. */
|
|
|
|
NSMapTable *_nameMap; /* Registered names information. */
|
1998-10-29 12:50:23 +00:00
|
|
|
}
|
2000-07-04 09:49:31 +00:00
|
|
|
+ (id) systemDefaultPortNameServer;
|
1998-10-29 12:50:23 +00:00
|
|
|
- (NSPort*) portForName: (NSString*)name;
|
|
|
|
- (NSPort*) portForName: (NSString*)name
|
|
|
|
onHost: (NSString*)host;
|
|
|
|
- (BOOL) registerPort: (NSPort*)port
|
|
|
|
forName: (NSString*)name;
|
2001-07-15 09:08:27 +00:00
|
|
|
- (BOOL) removePortForName: (NSString*)name;
|
1998-10-29 12:50:23 +00:00
|
|
|
@end
|
|
|
|
|
1998-11-02 10:55:53 +00:00
|
|
|
#ifndef NO_GNUSTEP
|
1998-10-30 08:40:03 +00:00
|
|
|
@interface NSPortNameServer (GNUstep)
|
2000-02-04 18:14:13 +00:00
|
|
|
- (NSArray*) namesForPort: (NSPort*)port; /* return all names for port */
|
2001-07-15 09:08:27 +00:00
|
|
|
- (BOOL) removePort: (NSPort*)port; /* remove all names for port */
|
|
|
|
- (BOOL) removePort: (NSPort*)port forName: (NSString*)name;
|
1998-10-30 08:40:03 +00:00
|
|
|
@end
|
1998-11-02 10:55:53 +00:00
|
|
|
#endif
|
1998-10-30 08:40:03 +00:00
|
|
|
|
1998-10-29 12:50:23 +00:00
|
|
|
#endif
|
|
|
|
|