4
Copyright (C) 1999 Helge Hess.
7
Author: Helge Hess <hh@mdlink.de>
9
This file is part of libFoundation.
11
Permission to use, copy, modify, and distribute this software and its
12
documentation for any purpose and without fee is hereby granted, provided
13
that the above copyright notice appear in all copies and that both that
14
copyright notice and this permission notice appear in supporting
17
We disclaim all warranties with regard to this software, including all
18
implied warranties of merchantability and fitness, in no event shall
19
we be liable for any special, indirect or consequential damages or any
20
damages whatsoever resulting from loss of use, data or profits, whether in
21
an action of contract, negligence or other tortious action, arising out of
22
or in connection with the use or performance of this software.
25
#include <Foundation/NSPortMessage.h>
26
#include <Foundation/NSPort.h>
27
#include <Foundation/NSArray.h>
29
@implementation NSPortMessage
31
/* message creation */
33
- (id)initWithMachMessage:(void *)aMsg
35
return [self notImplemented:_cmd];
38
- (id)initWithSendPort:(NSPort *)aSendPort
39
receivePort:(NSPort *)aReceivePort
40
components:(NSArray *)_components
42
self->components = RETAIN(_components);
43
self->sendPort = RETAIN(aSendPort);
44
self->receivePort = RETAIN(aReceivePort);
50
RELEASE(self->components);
51
RELEASE(self->sendPort);
52
RELEASE(self->receivePort);
56
/* getting message components (NSData's or NSPort's) */
58
- (NSArray *)components
60
return self->components;
65
- (void)setMsgid:(unsigned int)aMsgId
78
return self->sendPort;
80
- (NSPort *)receivePort
82
return self->receivePort;
87
- (BOOL)sendBeforeDate:(NSDate *)limitDate
89
return [self->receivePort sendBeforeDate:limitDate
91
AUTORELEASE([self->components mutableCopy])