Commit graph

48 commits

Author SHA1 Message Date
netc
2b06ef4c58 Merge in changes from NET-Community.
Add DLL support on Windows platforms.
Numerous minor bug fixes related to Windows platforms.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2420 72102866-910b-0410-8b05-ffd578937521
1997-09-13 17:52:31 +00:00
fedor
a57d791f91 Patches submitted from May 20 to Aug 28 1997
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2406 72102866-910b-0410-8b05-ffd578937521
1997-09-01 21:59:51 +00:00
mccallum
d6db7b756e ([Connection +newForInPort:outPort:ancestorConnection:]): Cast NEWCONN
to avoid warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2322 72102866-910b-0410-8b05-ffd578937521
1997-05-03 20:37:13 +00:00
mccallum
9e46e0e4a1 ([Connection -registerName:]): New method.
([Connection +newForInPort:outPort:ancestorConnection:]): Ask the
delegate for permission to create the new connection.  We were already
doing it GNUstep-style.  Do it OpenStep-style also.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2283 72102866-910b-0410-8b05-ffd578937521
1997-05-03 16:30:07 +00:00
mccallum
06040ad95f ([Connection -forwardForProxy:selector:argFrame:]): In nested function
decoder(), always set IP to -1 after sending it -dismiss, i.e. in both
cases.  Fix the assertion at the bottom so that IP is allowed to be
nil, which will be the case when mframe_build_return() never calls
decoder(), which will happen when we are returning void.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2220 72102866-910b-0410-8b05-ffd578937521
1997-03-04 15:53:52 +00:00
mccallum
c14b5e539b ([Connection -_getReceivedReplyRmcWithSequenceNumber:]): Break if the
RunLoop returns NO.  (Reported by Richard Frith-Macdonald
<richard@brainstorm.co.uk>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2031 72102866-910b-0410-8b05-ffd578937521
1997-01-09 16:20:35 +00:00
mccallum
b5f8117ecf * src/Connection.m ([Connection +rootProxyAtName:onHost:]):
Return nil if we fail to create a port for talking to a remote server.
        ([Connection forwardForProxy:selector:argFrame:]):
        Changes to ensure that ConnectedDecoder is correctly dismissed in the
	case where a DO method returns an object but does not have any
	parameter values returned.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2016 72102866-910b-0410-8b05-ffd578937521
1997-01-06 22:22:11 +00:00
mccallum
7202be0561 Substitute (NSString*) for (id <String>)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1945 72102866-910b-0410-8b05-ffd578937521
1996-11-24 17:30:39 +00:00
mccallum
8799c5c79d ([Connection -forwardForProxy:selector:argFrame:]): Add an assertion
that we processed all arguments and dismissed the ConnectedCoder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1929 72102866-910b-0410-8b05-ffd578937521
1996-11-02 20:39:47 +00:00
mccallum
c504ef7153 ([Connection -_service_forwardForProxy:]): Use new exception variable
name.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1669 72102866-910b-0410-8b05-ffd578937521
1996-09-02 13:57:39 +00:00
mccallum
49d43a44aa Change "Gnustep" to "GNUstep"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1521 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:56:10 +00:00
mccallum
3228ed0477 Change R. Andrew McCallum to post-marriage name: Andrew Kachites McCallum
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1456 72102866-910b-0410-8b05-ffd578937521
1996-04-17 20:17:45 +00:00
mccallum
dbe4613ced Rename in comments from GNU Objective C Class Library to Gnustep Base Library.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1451 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:55:26 +00:00
mccallum
89d67bb808 Fix typo; it is preface.h, not prefix.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1420 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:34:35 +00:00
mccallum
d4b12b4053 Change all include objects/*.h to include gnustep/base/*.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1419 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:23:00 +00:00
mccallum
4544d06b79 (debug_connection): Changed from 1 to 0; don't print debugging
messages.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1384 72102866-910b-0410-8b05-ffd578937521
1996-04-16 23:27:53 +00:00
mccallum
4bb93b1005 ([Connection -forwardForProxy:selector:argFrame:]): Use new mframe
interface.  In the nested function DECODER, autorelease any char*'s
that we decode, as required by the new memory reference scheme.
([Connection -_service_forwardForProxy:]): Likewise, for both.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1290 72102866-910b-0410-8b05-ffd578937521
1996-03-29 17:55:15 +00:00
mccallum
96ace81859 In all methods, use NSParameterAssert() instead of assert(), so that
it raises an NSException, and doesn't abort().
([Connection -forwardForProxy:selector:argFrame:]): Decode the flag
that indicates whether the return packet hold an exception or the
return values.  If it holds an exception, decode it and raise it.
([Connection -_service_forwardForProxy:]): Surround the processing of
the method request packet with NS_DURING...NS_ENDHANDLER.  If an
exception is raised, catch it, encode in in a specially flagged
packet, and send the packet back to the client.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1278 72102866-910b-0410-8b05-ffd578937521
1996-03-26 22:34:40 +00:00
mccallum
f491e64f1b Fix typos.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1276 72102866-910b-0410-8b05-ffd578937521
1996-03-26 20:59:42 +00:00
mccallum
4e034a4b95 Use NSException instead of sending -error: in all methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1275 72102866-910b-0410-8b05-ffd578937521
1996-03-26 20:52:26 +00:00
mccallum
dface81488 ([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
mccallum
fae68ecafa ([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
mccallum
83525eb693 ([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
mccallum
3e003b0db1 (in_port_2_ancestor): New static variable.
([Connection +initialize]): Initialize it.
([Connection +newForInPort:outPort:ancestorConnection:]): Use new
static variable to handle ancestor; (ignore ancestor argument; the
method name will be changed later).  Set the in-port's packet
invocation to the Connection class. Don't call -addToRunLoop.. here,
the mechanics of it were already done above.
([Connection -addToRunLoop:forMode:]): Mark it as not implemented, for
now.
([Connection -runConnectionUntilDate:]): Don't add to run loop here.
([Connection +invokeWithObject:]): Make it a class method instead of
an instance method; alter contents appropriately for this.
([Connection -portIsInvalid:]): Look at in_port_2_ancestor and remove
ourselves if necessary.
([Connection -invalidate]): Don't remove ourselves from the run loop
here, because we may not be the only one listening.  This still needs
fixing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1131 72102866-910b-0410-8b05-ffd578937521
1996-03-13 02:32:46 +00:00
mccallum
a4b570cbf2 Remove old-style methods for getting incoming ConnectedCoders. Add
new methods that use RunLoop.  All callers changed.
([Connection -addToRunLoop:forMode:]): New method.
([Connection -removeFromRunLoop:forMode:]): New method.
([Connection -runConnectionUntilDate:]): New method.
([Connection -runConnection]): Method changed to call above method.
([Connection -_handleRmc:]): New method.
([Connection -_handleQueuedRmcRequests]): New method.
([Connection -_getReceivedReplyRmcFromQueueWithSequenceNumber:]): New
method.
([Connection -_getReceivedReplyRmcWithSequenceNumber:]): New method.
([Connection -invokeWithObject:]): New method.
([Connection +newForInPort:outPort:ancestorConnection:]): Set
reply_depth ivar.
([Connection -_encoderCreateReferenceForConstPtr:]): Return the xref!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1117 72102866-910b-0410-8b05-ffd578937521
1996-03-12 19:40:16 +00:00
mccallum
ce9937212b ([Connection -isValid]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1099 72102866-910b-0410-8b05-ffd578937521
1996-03-12 14:43:30 +00:00
mccallum
c2cf958548 Assert is_valid in many places.
([Connection +newForInPort:outPort:ancestorConnection:]): Set is_valid
to 1.  Only ask for notification of out port death if out port is non-nil.
([Connection -portIsInvalid:]): Properly get the port from the
notification object.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1089 72102866-910b-0410-8b05-ffd578937521
1996-03-07 18:08:24 +00:00
mccallum
fd0733d23d ([Connection +initialize]): Initialize all_connections_local_targets.
([Connection -addLocalObject:]): Put it in all_connections_local_targets
also.
([Connection -removeLocalObject:]): Remove it from
all_connections_local_targets also.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1081 72102866-910b-0410-8b05-ffd578937521
1996-03-06 16:40:00 +00:00
mccallum
d714589623 (default_in_port_class, default_out_port_class): New static variables,
replacing default_port_class.
(all_connections_local_targets): New map table; not used yet, though.
(debug_connection): Temporarily set to 1.
([Connection +initialize]): Set new static vars.
([Connection +setDefaultInPortClass:]): New method.
([Connection +defaultInPortClass]): New method.
([Connection +setDefaultOutPortClass:]): New method.
([Connection +defaultOutPortClass]): New method.
([Connection -init]): Use new default_in_port_class.
([Connection +new]): Likewise.
([Connection +newWithRootObject:]): Likewise.
([Connection +newRegisteringAtName:withRootObject:]): Likewise.
([Connection +rootProxyAtName:onHost:]): Likewise.
([Connection +rootProxyAtPort:]): Likewise.
([Connection +newForInPort:outPort:ancestorConnection:]): Assert the
in port.  Embellish the debugging message to print the in port and
out port.  Set the new connection's in port and out port ivars.
Register ourselves as observers of port invalidation with the
NotificationDispatcher.  Post a notification that a new connection was
created.
([Connection -runConnectionWithTimeout:]): Use
_serviceReceivedRequestsWithTimeout:.
([Connection -_newReceivedRmcWithTimeout:]): Use decodingClass, not
encodingClass.
([Connection -_serviceReceivedRequestsWithTimeout:]): Method name
changed from -newReceivedReplyRmcWithSequenceNumber:.
([Connection +includesLocalObject:]): New method; still needs more
infrastructure to work, though.
([Connection -inPortClass]): New method.
([Connection -outPortClass]): New method.
([Connection -setInPortClass:aPortClass]): New method.
([Connection -setOutPortClass:aPortClass]): New method.
([Connection -_encoderCreateReferenceForConstPtr:]): Add 1 to map
table count to get xref.
([Connection -_decoderCreateReferenceForConstPtr:]): Likewise.
([Connection -dealloc]): Remove ourselves from the NotificationDispatcher.
(ConnectionWasCreatedNotification): New notification string.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1057 72102866-910b-0410-8b05-ffd578937521
1996-03-06 14:05:36 +00:00
mccallum
78362f95c8 ([Connection +connectionsCountWithInPort:]): Fix use of END_FOR_ARRAY.
([Connection -invalidate]): Post ConnectionBecameInvalidNotification.
(ConnectionBecameInvalidNotification): New extern String.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1043 72102866-910b-0410-8b05-ffd578937521
1996-03-03 00:45:04 +00:00
mccallum
7a180f449a Overhauled for new collections, coders and ports.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1015 72102866-910b-0410-8b05-ffd578937521
1996-03-01 15:54:57 +00:00
mccallum
8c3c74e514 encodeObjectBycopy -> encodeBycopyObject (to better match NeXT).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@863 72102866-910b-0410-8b05-ffd578937521
1996-01-26 20:34:21 +00:00
mccallum
43e22d67ef Use constant string objects instead of C strings where appropriate.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@800 72102866-910b-0410-8b05-ffd578937521
1996-01-24 14:11:20 +00:00
mccallum
07b43d0e5d Use string objects instead of C strings
for name arguments to encoding methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@796 72102866-910b-0410-8b05-ffd578937521
1996-01-24 03:33:21 +00:00
mccallum
e8e57eaff3 Use new-style method name "..ValueOfObjCType"
and "..ValueOfCType", instead of "..ValueOfType" and
"..ValueOfSimpleType".


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@781 72102866-910b-0410-8b05-ffd578937521
1996-01-23 23:57:17 +00:00
mccallum
8ba60dd26e ([Connection +newForInPort:outPort:ancestorConnection:]): Add comment.
I need to fix retain/release for Connection.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@462 72102866-910b-0410-8b05-ffd578937521
1995-06-29 00:53:34 +00:00
mccallum
883fa9fab5 Include from <Foundation/...>, not <foundation/...>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@391 72102866-910b-0410-8b05-ffd578937521
1995-04-17 21:13:20 +00:00
mccallum
3b43be1a80 Convert to new Coder scheme. Use -initWithCoder instead
of +newWithCoder where appropriate.  Remove arguments typed
(Coder*).  Replace +_newCollectionWithCoder with
-_initCollectionWithCoder.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@333 72102866-910b-0410-8b05-ffd578937521
1995-04-09 01:53:53 +00:00
mccallum
6caae079d1 (dealloc): Remove dealloc of remote_proxies contents.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@314 72102866-910b-0410-8b05-ffd578937521
1995-04-07 21:23:24 +00:00
mccallum
95bc03e7f4 Use (id <String>) instead of (String*)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@241 72102866-910b-0410-8b05-ffd578937521
1995-04-03 03:23:45 +00:00
mccallum
cc3460406a Removed Object(Retaining) category.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@146 72102866-910b-0410-8b05-ffd578937521
1995-03-18 15:44:32 +00:00
mccallum
6818111a6f #include objects/String.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@123 72102866-910b-0410-8b05-ffd578937521
1995-03-12 22:36:33 +00:00
mccallum
db8a865647 (initialize): return void.
Removed extraneous ;'s


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@118 72102866-910b-0410-8b05-ffd578937521
1995-03-12 22:23:25 +00:00
mccallum
c520d43b38 Use String* instead of char*.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@112 72102866-910b-0410-8b05-ffd578937521
1995-03-12 21:50:07 +00:00
mccallum
9dadd15c78 Use release' and dealloc' instead of `free'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@103 72102866-910b-0410-8b05-ffd578937521
1995-03-12 19:58:48 +00:00
mccallum
e5a451d833 CLASS' #define no longer necessary, using Class'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@68 72102866-910b-0410-8b05-ffd578937521
1995-03-08 23:04:52 +00:00
mccallum
0ae4349f26 (connectionForward,connectionPerformAndDismissCoder): Removed old
#if'ed-out versions.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33 72102866-910b-0410-8b05-ffd578937521
1994-11-21 00:19:10 +00:00
mccallum
3a43130da6 Initial revision
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1 72102866-910b-0410-8b05-ffd578937521
1994-11-04 16:29:24 +00:00