summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/foundation/NSPortNameServer.inc
blob: 5f5790271258c4702c1139c98d817fabcdd52c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{ Parsed from Foundation.framework NSPortNameServer.h }
{ Version: 2.1.4 - Sun Jan 2 15:08:57 CET 2011 }


{$ifdef TYPES}
{$ifndef NSPORTNAMESERVER_PAS_T}
{$define NSPORTNAMESERVER_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSPORTNAMESERVER_PAS_R}
{$define NSPORTNAMESERVER_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSPORTNAMESERVER_PAS_F}
{$define NSPORTNAMESERVER_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSPORTNAMESERVER_PAS_S}
{$define NSPORTNAMESERVER_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSPortNameServer = objcclass;
  NSPortNameServerPointer = ^NSPortNameServer;
  NSPortNameServerPtr = NSPortNameServerPointer;
  NSMachBootstrapServer = objcclass;
  NSMachBootstrapServerPointer = ^NSMachBootstrapServer;
  NSMachBootstrapServerPtr = NSMachBootstrapServerPointer;
  NSMessagePortNameServer = objcclass;
  NSMessagePortNameServerPointer = ^NSMessagePortNameServer;
  NSMessagePortNameServerPtr = NSMessagePortNameServerPointer;
  NSSocketPortNameServer = objcclass;
  NSSocketPortNameServerPointer = ^NSSocketPortNameServer;
  NSSocketPortNameServerPtr = NSSocketPortNameServerPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSPORTNAMESERVER_PAS_C}
{$define NSPORTNAMESERVER_PAS_C}

{ NSPortNameServer }
  NSPortNameServer = objcclass external (NSObject)
    
  public
    class function systemDefaultPortNameServer: NSPortNameServer; message 'systemDefaultPortNameServer';
    function portForName(name: NSString): NSPort; message 'portForName:';
    function portForName_host(name: NSString; host: NSString): NSPort; message 'portForName:host:';
    function registerPort_name(port: NSPort; name: NSString): Boolean; message 'registerPort:name:';
    function removePortForName(name: NSString): Boolean; message 'removePortForName:';
  end;

{ NSMachBootstrapServer }
  NSMachBootstrapServer = objcclass external (NSPortNameServer)
    
  public
    class function sharedInstance: id; message 'sharedInstance';
    function portForName(name: NSString): NSPort; message 'portForName:';
    function portForName_host(name: NSString; host: NSString): NSPort; message 'portForName:host:';
    function registerPort_name(port: NSPort; name: NSString): Boolean; message 'registerPort:name:';
    function servicePortWithName(name: NSString): NSPort; message 'servicePortWithName:';
  end;

{ NSMessagePortNameServer }
  NSMessagePortNameServer = objcclass external (NSPortNameServer)
    
  public
    class function sharedInstance: id; message 'sharedInstance';
    function portForName(name: NSString): NSPort; message 'portForName:';
    function portForName_host(name: NSString; host: NSString): NSPort; message 'portForName:host:';
  end;

{ NSSocketPortNameServer }
  NSSocketPortNameServer = objcclass external (NSPortNameServer)
    
  public
    class function sharedInstance: id; message 'sharedInstance';
    function portForName(name: NSString): NSPort; message 'portForName:';
    function portForName_host(name: NSString; host: NSString): NSPort; message 'portForName:host:';
    function registerPort_name(port: NSPort; name: NSString): Boolean; message 'registerPort:name:';
    function removePortForName(name: NSString): Boolean; message 'removePortForName:';
    function portForName_host_nameServerPortNumber(name: NSString; host: NSString; portNumber: cuint16): NSPort; message 'portForName:host:nameServerPortNumber:';
    function registerPort_name_nameServerPortNumber(port: NSPort; name: NSString; portNumber: cuint16): Boolean; message 'registerPort:name:nameServerPortNumber:';
    procedure setDefaultNameServerPortNumber(portNumber: cuint16); message 'setDefaultNameServerPortNumber:';
    function defaultNameServerPortNumber: cuint16; message 'defaultNameServerPortNumber';
  end;

{$endif}
{$endif}