Commit graph

802 commits

Author SHA1 Message Date
Andrew McCallum
d0ece8e982 File deleted.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1244 72102866-910b-0410-8b05-ffd578937521
1996-03-22 01:09:05 +00:00
Andrew McCallum
d6b8fb5fc0 *** empty log message ***
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1243 72102866-910b-0410-8b05-ffd578937521
1996-03-22 01:06:28 +00:00
Andrew McCallum
cae0ba6673 ([BinaryCStream -encodeValueOfCType:at:withName:name]): Fix typo.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1242 72102866-910b-0410-8b05-ffd578937521
1996-03-22 00:41:23 +00:00
Andrew McCallum
9e44cc662c New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1241 72102866-910b-0410-8b05-ffd578937521
1996-03-22 00:37:53 +00:00
Andrew McCallum
17de3bd4bc Second patch from Albin Jones
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1240 72102866-910b-0410-8b05-ffd578937521
1996-03-22 00:36:13 +00:00
Andrew McCallum
6c9e163ef5 Overhauled to use htonl() and friends. New format is incompatible
with the old.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1237 72102866-910b-0410-8b05-ffd578937521
1996-03-22 00:31:09 +00:00
Andrew McCallum
7650c0da16 (CC): Added -pipe.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1232 72102866-910b-0410-8b05-ffd578937521
1996-03-20 18:21:13 +00:00
Andrew McCallum
29e7f82a7e (debug_tcp_port): Set to 1.
([TcpInPort -encodeWithCoder:]): Use encodeBytes:.., not
encodeValue..; the data is already in network byte-order.
([TcpOutPort -encodeWithCoder:]): Likewise.
([TcpOutPort +newWithCoder:]): Likewise.
([TcpOutPort
+newForSendingToSockaddr:withAcceptedSocket:pollingInPort:]): Set
entirety of _REMOTE_IN_PORT_ADDRESS to zero.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1227 72102866-910b-0410-8b05-ffd578937521
1996-03-19 20:37:04 +00:00
Andrew McCallum
8ca91f872c ([NotificationQueue -dequeueNotificationsMatching:coalesceMask:]):
Specify object class in arg type for nested function.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1226 72102866-910b-0410-8b05-ffd578937521
1996-03-19 20:34:29 +00:00
Andrew McCallum
ab2f452521 ([Encoder -encodeBytes:count:withName:]): Update for new argument
types.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1225 72102866-910b-0410-8b05-ffd578937521
1996-03-19 20:33:46 +00:00
Andrew McCallum
8ba8c086a6 ([Decoder -decodeBytes:count:withName:name]): Update for new argument
types, and verify read count.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1224 72102866-910b-0410-8b05-ffd578937521
1996-03-19 20:33:28 +00:00
Andrew McCallum
925ffab1d0 (Coding -encodeBytes:count:withName:): Use void*, not char* for bytes.
(Coding -decodeBytes:count:withName:): Likewise, and pass COUNT, not
pointer to COUNT.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1223 72102866-910b-0410-8b05-ffd578937521
1996-03-19 20:32:33 +00:00
Andrew McCallum
deba918381 ([Decoder -decodeBytes:count:withName:name]): Method implemented;
although it may need to change later.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1222 72102866-910b-0410-8b05-ffd578937521
1996-03-19 18:33:07 +00:00
Andrew McCallum
e3a2c20e9d ([Encoder -encodeBytes:count:withName:]): Method implemented; although
it may need to change later.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1221 72102866-910b-0410-8b05-ffd578937521
1996-03-19 18:32:49 +00:00
Andrew McCallum
a737a8e65f ([RunLoop -acceptInputForMode:beforeDate:]): If LIMIT_DATE is nil,
poll the inputs, but don't wait if there is nothing available
immediately.  Check to make sure that the LIMIT_DATE hasn't already
past; if it has, return immediately, before polling input sources.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1220 72102866-910b-0410-8b05-ffd578937521
1996-03-19 17:10:41 +00:00
Andrew McCallum
1b2de183e8 New file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1217 72102866-910b-0410-8b05-ffd578937521
1996-03-19 02:02:52 +00:00
Andrew McCallum
f32edd01af Raise NSExceptions instead of using -error:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1214 72102866-910b-0410-8b05-ffd578937521
1996-03-19 01:48:39 +00:00
Andrew McCallum
2dfd45f9ec Fix indentation.
([NSThread +currentThread]): Add parenthesis around assignment inside
while.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1213 72102866-910b-0410-8b05-ffd578937521
1996-03-19 01:45:25 +00:00
Andrew McCallum
0bf7ab8983 Include <objects/behavior.h.
([NSString -componentsSeparatedByString:]): Initialize ARRAY!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1212 72102866-910b-0410-8b05-ffd578937521
1996-03-19 01:44:01 +00:00
Andrew McCallum
163c4a6b3c Include <objects/stdobjects.h>
Use OBJC_MALLOC and friends, instead of NX_MALLOC.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1211 72102866-910b-0410-8b05-ffd578937521
1996-03-19 01:40:44 +00:00
Andrew McCallum
f5e685101b ([Decoder -finishDecodingInterconnectedObjects]): Comment out
temporarily unused AWAKE_SEL local variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1210 72102866-910b-0410-8b05-ffd578937521
1996-03-19 01:35:05 +00:00
Andrew McCallum
74782ae088 ([Proxy -encodeWithCoder:]): Add a more explanatory error message for
the use of invalid Connections.
([Proxy +encodeObject:withConnectedCoder:]): Likewise.
([Proxy -forward::]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1208 72102866-910b-0410-8b05-ffd578937521
1996-03-19 01:05:46 +00:00
Andrew McCallum
82c7cb714c Prepend debugging messages with "RunLoop".
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1205 72102866-910b-0410-8b05-ffd578937521
1996-03-19 00:59:05 +00:00
Andrew McCallum
ca3f658c9c ([Connection -_handleRmc:]): [METHOD_REQUEST]: Fix conditional for
which we handle a request immediately.  Before it inappropriately
queued call backs from the server on which we were waiting, causing us
to wait forever.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1204 72102866-910b-0410-8b05-ffd578937521
1996-03-19 00:58:38 +00:00
Andrew McCallum
c2e7210f88 ([TcpOutPort -encodeWithCoder:]): Add debugging message.
([TcpOutPort +newWithCoder:]): Add debugging message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1203 72102866-910b-0410-8b05-ffd578937521
1996-03-19 00:56:23 +00:00
Andrew McCallum
39d213eb41 ([Proxy +newWithCoder:]): Fix misspelling in debug message.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1202 72102866-910b-0410-8b05-ffd578937521
1996-03-19 00:55:27 +00:00
Andrew McCallum
166bb21ba3 ([Proxy +encodeObject:withConnectedCoder:]): Assert that triangle
connection proxy out port's are valid.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1201 72102866-910b-0410-8b05-ffd578937521
1996-03-18 21:57:29 +00:00
Andrew McCallum
fa55380b3a ([NSObject -autorelease]): Print retain and release counts in more
helpful error message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1199 72102866-910b-0410-8b05-ffd578937521
1996-03-18 21:48:15 +00:00
Andrew McCallum
b345ca1491 (NSAllMapTableKeys): Don't autorelease the return value; it was
already autoreleased.  Too many autoreleases were causing crashes.
(NSAllMapTableValues): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1198 72102866-910b-0410-8b05-ffd578937521
1996-03-18 21:47:49 +00:00
Andrew McCallum
7bc19d4b5b ([NSAutoreleasePool -dealloc]): Set CURRENT_POOL to PARENT, even if
PARENT is nil.  This is correct behavior.  Old behavior could cause
infinite loops in the PARENT pointers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1197 72102866-910b-0410-8b05-ffd578937521
1996-03-18 21:43:14 +00:00
Andrew McCallum
f62116869f ([RunLoop -limitDateForMode:]): Assert mode.
([RunLoop -acceptInputForMode:beforeDate:]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1196 72102866-910b-0410-8b05-ffd578937521
1996-03-18 20:29:34 +00:00
Andrew McCallum
f24b91155f ([NSTimer +scheduledTimerWithTimeInterval:invocation:repeats:]): Add
to RunLoopDefaultMode, not nil.
([NSTimer
+scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:]):
Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1195 72102866-910b-0410-8b05-ffd578937521
1996-03-18 20:28:12 +00:00
Andrew McCallum
b0a8032e42 ([Connection -_getReceivedReplyRmcWithSequenceNumber:]): Run the
RunLoop in RunLoopConnectionReplyMode, not nil mode.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1194 72102866-910b-0410-8b05-ffd578937521
1996-03-18 20:27:30 +00:00
Andrew McCallum
ef5d6a6d5e Remove old methods. Add declaration of new RunLoop mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1193 72102866-910b-0410-8b05-ffd578937521
1996-03-18 20:09:30 +00:00
Andrew McCallum
8c4e419ead ([Connection +newForInPort:outPort:ancestorConnection:]): Add the in
port to the RunLoop in new RunLoop style.
([Connection -addToRunLoop:forMode:]): Method removed.
([Connection -removeFromRunLoop:forMode:]): Method removed.
([Connection -_getReceivedReplyRmcWithSequenceNumber:]): Use new class
method for RunLoop.
([Connection -invalidate]): Remove comment about removing from
RunLoop.  RunLoop's now automatically remove invalid ports.
(RunLoopConnectionReplyMode): New run loop mode string.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1192 72102866-910b-0410-8b05-ffd578937521
1996-03-18 20:08:53 +00:00
Andrew McCallum
894952afe3 Removed methods for dealing remembering locally which RunLoop we've
been added to; now the RunLoop manages this.
([TcpInPort +newForReceivingFromPortNumber:]): Don't initialize the
the removed ivar ACTIVE_FD_SET.  Likewise with _RUN_LOOPS.
([TcpInPort -newPacketReceivedBeforeDate:]): Don't use removed
_RUN_LOOPS.
([TcpInPort -old_receivePacketWithTimeout:]): Remove old deprecated
method.
([TcpInPort -invokeWithObject:]): Method removed.
([TcpInPort -newPacketReceivedBeforeDate:]): Overhauled to use new
RunLoop mechanism.
([TcpInPort -getFds:count:]): New method, called by RunLoop.
([TcpInPort -readyForReadingOnFileDescriptor:]): Likewise.
([TcpInPort -_addClientOutPort:]): Updated for new scheme.
([TcpInPort -_connectedOutPortInvalidated:]): Likewise.
([TcpInPort -addToRunLoop:forMode:]): Method removed.
([TcpInPort -removeFromRunLoop:forMode:]): Method removed.
([TcpInPort -dealloc]): Don't release _RUN_LOOPS.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1189 72102866-910b-0410-8b05-ffd578937521
1996-03-18 19:40:45 +00:00
Andrew McCallum
168723aa94 (TcpInPort _run_loops): Removed ivars.
(TcpInPort _client_sock_2_out_port, _client_sock_2_packet): Prepended
ivars with underscores.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1188 72102866-910b-0410-8b05-ffd578937521
1996-03-18 19:33:51 +00:00
Andrew McCallum
d1ae74f76b Add new explanatory comment at beginning.
([RunLoop -init]): Initialize new ivars.
([RunLoop -currentMode]): New method.
([RunLoop -addFileDescriptor:object:forMode:]): Method replaces
-addFileDescriptor:invocation:forMode:, and re-implemented.  Not yet
functional.
([RunLoop -removeFileDescriptor:forMode:]): Likewise.
([RunLoop -addPort:forMode:]): New method.
([RunLoop -removePort:forMode:]): New method.
([RunLoop -addTimer:forMode:]): Overhauled to do the right thing with
the MODE argument.
([RunLoop -acceptInputForMode:beforeDate:]): Method overhauled to ask
port objects for their FD's, create FD_2_OBJECT map table on the fly,
and initialize FDS on the fly.  Now properly removed invalidated ports
from the MODE.
([RunLoop -runOnceBeforeDate:forMode:]): New method.
([RunLoop -runOnceBeforeDate:]): New method.
([RunLoop -runUntilDate:forMode:]): New method.
([RunLoop -runUntilDate:]): New method.
([RunLoop +runUntilDate:forMode:]): New method.
([RunLoop +runOnceBeforeDate:]): New method.
([RunLoop +runOnceBeforeDate:forMode:]): New method.
([RunLoop +currentMode]): New method.
(RunLoopDefaultMode): New global variable.
([NSObject -performSelector:afterDelay:]): Not implemented.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1187 72102866-910b-0410-8b05-ffd578937521
1996-03-18 19:32:45 +00:00
Andrew McCallum
d885418358 Many new methods declared.
(RunLoop _mode_2_timers): New ivar.
(RunLoop _mode_2_in_ports): New ivar.
(RunLoop _mode_2_fd_listeners): New ivar.
(RunLoopDefaultMode): New extern variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1186 72102866-910b-0410-8b05-ffd578937521
1996-03-18 19:26:13 +00:00
Andrew McCallum
a91e058724 (RandomGenerating): Inherit from NSObject protocol. Remove methods
+alloc and -init.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1185 72102866-910b-0410-8b05-ffd578937521
1996-03-18 19:23:57 +00:00
Andrew McCallum
a6e5beda0e ([NSDate +distantFuture]): Increase efficiency by caching a single
instance in a static variable.
([NSDate +distantPast]): Likewise.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1184 72102866-910b-0410-8b05-ffd578937521
1996-03-18 18:31:37 +00:00
Andrew McCallum
c00ba6acd1 Don't include <objects/SocketPort.h>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1183 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:10:06 +00:00
Andrew McCallum
1ec7e45812 Declare classes UdpInPacket and UdpOutPacket.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1182 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:09:48 +00:00
Andrew McCallum
c15e973016 (dissect_method_return): Initialize RETFRAME to NULL to prevent warning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1181 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:03:17 +00:00
Andrew McCallum
259be49a34 Change references to non-existant UdpPacket class to UdpInPacket.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1180 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:02:44 +00:00
Andrew McCallum
a5a2baa793 ([TextCStream -decodeName:name]): Pass correct value to debug message.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1179 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:02:14 +00:00
Andrew McCallum
baea97e1c6 (bzero): New macro, to memset(); for FD_ZERO().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1178 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:01:18 +00:00
Andrew McCallum
1da6a89a71 Remove references to NAN. Define bzero for FD_CLR(). Include
<string.h> for memset.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1177 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:00:47 +00:00
Andrew McCallum
d214ea4667 ([RawCStream -encodeValueOfCType:at:withName:name]): Remove unused variable.
([RawCStream -decodeValueOfCType:at:withName:]): Likewise.  Switch on
*type, not unused variable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1176 72102866-910b-0410-8b05-ffd578937521
1996-03-18 14:00:06 +00:00
Andrew McCallum
942f1e24e4 ([Proxy +newWithCoder:]): Remove unused variable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1175 72102866-910b-0410-8b05-ffd578937521
1996-03-18 13:59:19 +00:00