(TcpInPort _run_loops): Make it a Bag.

(TcpInPort _run_loop_modes): Remove ivar.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1138 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-03-13 02:39:07 +00:00
parent 48ff0e32af
commit 87a1745c9d
2 changed files with 8 additions and 12 deletions

View file

@ -42,9 +42,9 @@
fd_set active_fd_set; fd_set active_fd_set;
NSMapTable *client_sock_2_out_port; NSMapTable *client_sock_2_out_port;
NSMapTable *client_sock_2_packet; NSMapTable *client_sock_2_packet;
/* The RunLoop with which our file descriptors are registered. */ /* The RunLoops with which our file descriptors are registered. */
id _run_loop; Bag *_run_loops;
id _run_loop_mode; /* xxx run loop modes are currently ignored. */
} }
+ newForReceivingFromPortNumber: (unsigned short)n; + newForReceivingFromPortNumber: (unsigned short)n;
@ -52,9 +52,7 @@
/* Get a packet from the net and return it. If no packet is received /* 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. */
- newReceivedPacketBeforeDate: date; - newPacketReceivedBeforeDate: date;
/* xxx Change this name to - newPacketReceivedWithTimeout: to emphasize
need to release the returned packet. */
- (int) portNumber; - (int) portNumber;
- (id <Collecting>) connectedOutPorts; - (id <Collecting>) connectedOutPorts;

View file

@ -42,9 +42,9 @@
fd_set active_fd_set; fd_set active_fd_set;
NSMapTable *client_sock_2_out_port; NSMapTable *client_sock_2_out_port;
NSMapTable *client_sock_2_packet; NSMapTable *client_sock_2_packet;
/* The RunLoop with which our file descriptors are registered. */ /* The RunLoops with which our file descriptors are registered. */
id _run_loop; Bag *_run_loops;
id _run_loop_mode; /* xxx run loop modes are currently ignored. */
} }
+ newForReceivingFromPortNumber: (unsigned short)n; + newForReceivingFromPortNumber: (unsigned short)n;
@ -52,9 +52,7 @@
/* Get a packet from the net and return it. If no packet is received /* 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. */
- newReceivedPacketBeforeDate: date; - newPacketReceivedBeforeDate: date;
/* xxx Change this name to - newPacketReceivedWithTimeout: to emphasize
need to release the returned packet. */
- (int) portNumber; - (int) portNumber;
- (id <Collecting>) connectedOutPorts; - (id <Collecting>) connectedOutPorts;