Declare new methods.

(Port _packet_invocation): New ivar.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1112 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-12 14:56:43 +00:00
parent 02e6ab2701
commit 0b83e5b725
2 changed files with 32 additions and 2 deletions

View file

@ -49,11 +49,26 @@
@interface InPort : Port @interface InPort : Port
{
id _packet_invocation;
}
+ newForReceiving; + newForReceiving;
+ newForReceivingFromRegisteredName: (id <String>)name; + newForReceivingFromRegisteredName: (id <String>)name;
/* Get a packet from the net and return it. If no packet is received /* Register/Unregister this port for input handling through RunLoop
RUN_LOOP in mode MODE. */
- (void) addToRunLoop: run_loop forMode: (id <String>)mode;
- (void) removeFromRunLoop: run_loop forMode: (id <String>)mode;
/* When a RunLoop is handling this InPort, and a new incoming
packet arrives, INVOCATION will be invoked with the new packet
as an argument. The INVOCATION is responsible for releasing
the packet. */
- (void) setPacketInvocation: (id <Invoking>)invocation;
/* An alternative to the above way for receiving packets from this port.
Get a packet from the net and return it. If no packet is received
within MILLISECONDS, then return nil. The caller is responsible within MILLISECONDS, then return nil. The caller is responsible
for releasing the packet. */ for releasing the packet. */
- receivePacketWithTimeout: (int)milliseconds; - receivePacketWithTimeout: (int)milliseconds;

View file

@ -49,11 +49,26 @@
@interface InPort : Port @interface InPort : Port
{
id _packet_invocation;
}
+ newForReceiving; + newForReceiving;
+ newForReceivingFromRegisteredName: (id <String>)name; + newForReceivingFromRegisteredName: (id <String>)name;
/* Get a packet from the net and return it. If no packet is received /* Register/Unregister this port for input handling through RunLoop
RUN_LOOP in mode MODE. */
- (void) addToRunLoop: run_loop forMode: (id <String>)mode;
- (void) removeFromRunLoop: run_loop forMode: (id <String>)mode;
/* When a RunLoop is handling this InPort, and a new incoming
packet arrives, INVOCATION will be invoked with the new packet
as an argument. The INVOCATION is responsible for releasing
the packet. */
- (void) setPacketInvocation: (id <Invoking>)invocation;
/* An alternative to the above way for receiving packets from this port.
Get a packet from the net and return it. If no packet is received
within MILLISECONDS, then return nil. The caller is responsible within MILLISECONDS, then return nil. The caller is responsible
for releasing the packet. */ for releasing the packet. */
- receivePacketWithTimeout: (int)milliseconds; - receivePacketWithTimeout: (int)milliseconds;