mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
0347b4349f
commit
ca33981cce
2 changed files with 32 additions and 2 deletions
|
@ -49,11 +49,26 @@
|
|||
|
||||
|
||||
@interface InPort : Port
|
||||
{
|
||||
id _packet_invocation;
|
||||
}
|
||||
|
||||
+ newForReceiving;
|
||||
+ 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
|
||||
for releasing the packet. */
|
||||
- receivePacketWithTimeout: (int)milliseconds;
|
||||
|
|
|
@ -49,11 +49,26 @@
|
|||
|
||||
|
||||
@interface InPort : Port
|
||||
{
|
||||
id _packet_invocation;
|
||||
}
|
||||
|
||||
+ newForReceiving;
|
||||
+ 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
|
||||
for releasing the packet. */
|
||||
- receivePacketWithTimeout: (int)milliseconds;
|
||||
|
|
Loading…
Reference in a new issue