~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to Headers/gnustep/base/NSPortNameServer.h

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Interface of NSPortNameServer class for Distributed Objects
2
 
   Copyright (C) 1998,1999 Free Software Foundation, Inc.
3
 
 
4
 
   Written by:  Richard Frith-Macdonald <richard@brainstorm.co.uk>
5
 
   Created: October 1998
6
 
 
7
 
   This file is part of the GNUstep Base Library.
8
 
 
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.
13
 
 
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.
18
 
 
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.
22
 
   */
23
 
 
24
 
#ifndef __NSPortNameServer_h_GNUSTEP_BASE_INCLUDE
25
 
#define __NSPortNameServer_h_GNUSTEP_BASE_INCLUDE
26
 
 
27
 
#include        <Foundation/NSObject.h>
28
 
 
29
 
@class  NSPort, NSString, NSMutableArray;
30
 
 
31
 
@interface      NSPortNameServer : NSObject
32
 
{
33
 
  NSMapTable    *_portMap;      /* Registered ports information.        */
34
 
  NSMapTable    *_nameMap;      /* Registered names information.        */
35
 
}
36
 
+ (id) systemDefaultPortNameServer;
37
 
- (NSPort*) portForName: (NSString*)name;
38
 
- (NSPort*) portForName: (NSString*)name
39
 
                 onHost: (NSString*)host;
40
 
- (BOOL) registerPort: (NSPort*)port
41
 
              forName: (NSString*)name;
42
 
- (BOOL) removePortForName: (NSString*)name;
43
 
@end
44
 
 
45
 
#ifndef NO_GNUSTEP
46
 
@interface      NSPortNameServer (GNUstep)
47
 
- (NSArray*) namesForPort: (NSPort*)port;       /* return all names for port */
48
 
- (BOOL) removePort: (NSPort*)port;             /* remove all names for port */
49
 
- (BOOL) removePort: (NSPort*)port forName: (NSString*)name;
50
 
@end
51
 
#endif
52
 
 
53
 
#endif
54