libs-base/Source
Andrew McCallum 871b80f439 Many ivar names changed for clarity. Some new ivars added; see
changes to TcpPort.h.  Overhaul of how TcpOutPort's track their remote
address.  Previously they used the address of their local peer; this
is no good when encoding a TcpOutPort on the wire for D.O.; the
D.O. reciever needs a way to contact the listen'ing socket of the
TcpInPort in order to form a new connection.  _remote_in_port_address
is now the address of the remote listen'ing socket.  Added many
comments throughout.  All perror() calls changes to be more
informative.
(debug_tcp_port): Make this a static variable instead of a macro.
(init_socket_2_port): Check pre-existance of socket_2_port here
instead of callers.
([TcpInPort +newForReceivingFromPortNumber:]): Method overhauled.
Don't bind socket to INADDR_ANY because we need to be able to encode
our unique host address on the wire for D.O.
([TcpInPort -_listeningSockaddr]): New method.
([TcpInPort -receivePacketWithTimeout:]): Method overhauled.  Get the
reply port for an incoming packet from the packet prefix.
([TcpInPort -_connectedOutPortInvalidated:]): Add debugging message.
([TcpInPort -classForConnectedCoder:]): Return the TcpOutPort class,
not [self class] because we always encode a "send right" (ala Mach),
not a "recieve right".
([TcpOutPort
+newForSendingToSockaddr:withAcceptedSocket:pollingInPort:]): Method
renamed, and majorly overhauled.  Now many different combinations of
NULL argument do different things.  This is now the single designated
initializer.  We now check both the SOCKADDR and the SOCK argument to
find previously-created TcpOutPort's.  This method is also used to set
the remote_in_port_address of an already-created TcpOutPort.  There is
more error checking.
([TcpOutPort +newForSendingToPortNumber:onHost:]): Overhauled.
([TcpOutPort +_newWithAcceptedSocket:peeraddr:inPort:]): Overhauled to
work with new designated  initalizer.
([TcpOutPort -sendPacket:withTimeout:]): Use new low-level Packet
interface that deals with reply ports.
([TcpOutPort +packetClass]): New method.
(PREFIX_LENGTH_TYPE): New macro.
(PREFIX_LENGTH_SIZE): New macro.
(PREFIX_ADDRESS_TYPE): New macro.
(PREFIX_ADDRESS_SIZE): New macro.
(PREFIX_SIZE): New macro.
([TcpPacket -_initForReceivingWithSize:replyPort:]): Use 0 prefix,
because the separate +_getPacketSize... method reads those bytes.
([TcpPacket -_writeToSocket:withReplySockaddr:]): Now the prefix
includes the sockaddr of the reply port.  If ADDR is non-null, set the
reply port address portion of the prefix.
([TcpPacket +_getPacketSize:andReplyPort:fromSocket:inPort:]): New
method, replacing +readPacketSizeFromSocket:.
([TcpPacket -_fillFromSocket:]): Set Stream's eofPosition properly.
Leave Stream's position at zero.
(InPortAcceptedClientNotification): New notification string.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1063 72102866-910b-0410-8b05-ffd578937521
1996-03-06 14:35:57 +00:00
..
objc Patched from mail. See ChangeLog 1996-01-21 01:36:47 +00:00
objects New file. 1996-03-03 02:18:46 +00:00
.cvsignore Added generated source files. 1996-01-26 15:34:59 +00:00
abort.c *** empty log message *** 1996-02-13 02:31:48 +00:00
allocs.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 16:00:28 +00:00
Archiver.m Comment change. 1996-02-22 15:04:58 +00:00
argframe.m Use new-style method name "..ValueOfObjCType" 1996-01-23 23:57:17 +00:00
array.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 16:00:28 +00:00
Array.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
atoz.m New version from Albin Jones, plus fixes by McCallum. 1996-02-22 16:00:28 +00:00
AutoreleasePool.m Don't include <objects/eltfuncs.h>. 1996-02-22 15:12:41 +00:00
AutoreleaseStack.m Don't include <objects/eltfuncs.h>. 1996-02-22 15:12:41 +00:00
Bag.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
behavior.c (class_add_behavior): Fix typo. 1996-01-26 16:25:32 +00:00
behavior.m (class_add_behavior): Fix typo. 1996-01-26 16:25:32 +00:00
BinaryCStream.m ([BinaryCStream -decodeValueOfCType:at:withName:]): Make save_type const. 1996-02-22 15:13:13 +00:00
BinaryTree.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
BinaryTreeEltNode.m (initialize): return void. 1995-03-12 19:57:15 +00:00
BinaryTreeNode.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
callbacks-char_p.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
callbacks-id.m New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
callbacks-int.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
callbacks-int_p.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
callbacks-void_p.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
callbacks.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
CircularArray.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
Coder.m ([Coder -close]): Method renamed from -closeCoding. 1996-02-24 16:35:03 +00:00
Collection.m ([Enumerator -nextObject]): Pass pointer to ENUM_STATE. 1996-03-03 00:33:24 +00:00
collhash.c (coll_hash_next): Set STATE to 0 before returning when the list is 1995-10-26 00:48:55 +00:00
ConnectedCoder.m (CONNECTED_CODER_FORMAT_VERSION): New macro. 1996-03-06 13:54:21 +00:00
Connection.m (default_in_port_class, default_out_port_class): New static variables, 1996-03-06 14:05:36 +00:00
ConstantString.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
CStream.m Use new SIGNATURE_FORMAT_STRING, as defined in objects/CoderPrivate.h. 1996-03-06 13:51:48 +00:00
CString.m ([CString -initWithCString:range:]): Don't make super call. 1996-02-22 15:13:53 +00:00
data.c *** empty log message *** 1996-02-13 02:31:48 +00:00
Decoder.m ([Decoder +readSignatureFromCStream:getClassname:formatVersion:]): 1996-03-06 14:07:17 +00:00
DelegatePool.m ([DelegatePool -forward::]): Fix use of END_FOR_ARRAY. 1996-03-03 00:33:51 +00:00
Dictionary.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
dld-load.h Initial revision 1995-04-03 20:49:14 +00:00
eltfuncs.m Initial revision 1994-11-04 16:29:24 +00:00
EltNodeCollector.m Use string objects instead of C strings 1996-01-24 03:33:21 +00:00
Encoder.m ([Encoder -_coderCreateReferenceForObject:]): Insert it in 1996-03-06 14:09:15 +00:00
find_exec.c WinNT and thread-related odifications from Scott Christley 1996-02-13 15:43:30 +00:00
GapArray.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
gnu4next.m Initial revision 1996-01-22 23:22:11 +00:00
gnu4nextrt.m Initial revision 1996-01-22 23:22:11 +00:00
hash.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
HashTable.m Initial revision 1994-11-04 16:29:24 +00:00
Heap.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
hpux-load.h *** empty log message *** 1995-08-02 16:37:09 +00:00
IndexedCollection.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
Invocation.m ([MethodInvocation -invokeWithObject:]): Make it a 1996-03-03 00:38:06 +00:00
KeyedCollection.m ([ConstantKeyedCollection -description]): Use object_get_class_name 1996-03-03 00:35:28 +00:00
LinkedList.m ([LinkedList -prependObject:]): Fix return type. 1996-03-06 14:09:55 +00:00
LinkedListEltNode.m (initialize): return void. 1995-03-12 22:10:02 +00:00
LinkedListNode.m ([LinkedListNode -initialize]): Method removed. 1996-03-03 01:37:08 +00:00
list.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
List.m Initial revision 1994-11-04 16:29:24 +00:00
Lock.m Initial revision 1994-11-04 16:29:24 +00:00
MachPort.m Surrounded by #if for mach. 1996-03-01 16:21:34 +00:00
Magnitude.m (compare:): Implemented. 1995-03-23 03:48:18 +00:00
Makefile.in (GNU_MFILES): Added Notification.m and NotificationDispatcher.m. 1996-03-03 02:16:25 +00:00
Makefile.local Initial revision 1996-01-22 23:22:11 +00:00
Makefile.sed.nt Reinstate this file. 1996-02-22 16:10:56 +00:00
MallocAddress.m Use NSMapTable instead of Dictionary class. 1996-02-22 15:15:46 +00:00
map.c New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
MappedCollector.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
md5.c *** empty log message *** 1996-02-13 02:31:48 +00:00
md5.h *** empty log message *** 1996-02-13 02:31:48 +00:00
MemoryStream.m ([Stream -close]): Method renamed from -closeStream. 1996-02-24 16:37:55 +00:00
MethodSignature.m Initial revision 1996-01-22 23:22:11 +00:00
mframe.m (make_method_call) [__mips__]: Add 4 to offset for float retframe. 1995-08-04 15:09:01 +00:00
MutableCString.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
MutableString.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
Notification.m New file. 1996-03-03 02:18:46 +00:00
NotificationDispatcher.m New file. 1996-03-03 02:18:46 +00:00
NSAllocateObject.m Indentation changes. 1996-03-06 14:10:17 +00:00
NSArchiver.m ([NSUnarchiver +allocWithZone:]): New method. 1996-02-13 01:50:29 +00:00
NSArray.m Use -subclassResponsibility instead of -notImplemented 1996-02-01 17:04:17 +00:00
NSAssertionHandler.m Include from <Foundation/...>, not <foundation/...>. 1995-04-17 21:13:20 +00:00
NSAutoreleasePool.m ([NSAutoreleasePool -dealloc]): Removed question comment. 1995-08-23 15:07:17 +00:00
NSBitmapCharSet.m Initial revision 1995-05-05 21:16:49 +00:00
NSBundle.m WinNT and thread-related odifications from Scott Christley 1996-02-13 15:43:30 +00:00
NSCallBacks.h New file. 1996-02-22 15:56:02 +00:00
NSCallBacks.m New file. 1996-02-22 15:47:04 +00:00
NSCharacterSet.m all methods): Implemented. 1995-08-30 21:31:29 +00:00
NSCoder.m WinNT and thread-related odifications from Scott Christley 1996-02-13 15:43:30 +00:00
NSConcreteNumber.m ([NumberTemplate -hash]): New method. 1996-02-22 16:06:34 +00:00
NSConcreteValue.m Patched from mail. 1995-08-30 21:49:35 +00:00
NSCopyObject.m Initial revision 1995-03-18 16:39:48 +00:00
NSCountedSet.m Initial revision 1995-10-30 01:00:39 +00:00
NSCTemplateValue.m Patched from mail. 1995-08-30 21:49:35 +00:00
NSData.m Fix typos. 1996-02-22 16:05:12 +00:00
NSDate.m WinNT and thread-related odifications from Scott Christley 1996-02-13 15:43:30 +00:00
NSDeallocateObject.m (NSDeallocateObject): Fix typo. 1995-04-05 16:09:45 +00:00
NSDictionary.m Use -subclassResponsibility instead of -notImplemented 1996-02-01 17:04:17 +00:00
NSEnumerator.m Use -subclassResponsibility instead of -notImplemented 1996-02-01 17:04:17 +00:00
NSException.m (NSInconsistentArchiveException): String removed; it's in NSArchiver.m. 1996-01-26 19:20:10 +00:00
NSGArchiver.m Use new Archiver classes instead of Coder. 1996-02-22 15:17:12 +00:00
NSGArray.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
NSGCountedSet.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
NSGCString.m Overhaul for new collection class scheme to improve distributed 1996-02-22 16:05:47 +00:00
NSGData.m ([NSGData -writeToFile:atomically:]): Use cStringNoCopy. 1996-01-26 03:10:13 +00:00
NSGDictionary.m ([NSGMutableDictionary -objectForKey:]): New method. 1996-03-03 00:35:52 +00:00
NSGeometry.m Patched from mail. See ChangeLog 1995-12-20 18:42:38 +00:00
NSGSet.m Overhaul for new collection class scheme to improve distributed 1996-02-22 15:18:57 +00:00
NSHashTable.m New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
NSInvocation.m ([NSInvocation +initialize]): Fix typo. 1996-02-24 18:51:20 +00:00
NSLock.m New files from Scott Christley 1996-02-13 15:40:05 +00:00
NSLog.m Initial revision 1996-01-22 23:22:11 +00:00
NSMapTable.m New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
NSMethodSignature.m ([NSMethodSignature +signatureWithObjCTypes:]): Use gcc's builtin 1996-01-12 16:56:38 +00:00
NSMutableData.m Use -subclassResponsibility instead of -notImplemented 1996-02-01 17:04:17 +00:00
NSNotification.m New implementation based on GNU Notification. This version is much 1996-03-03 01:41:01 +00:00
NSNotificationCenter.m New implementation based on GNU NotificationDispatcher. This version 1996-03-03 01:41:20 +00:00
NSNumber.m ([NSNumber -description]): New method. 1996-02-22 16:02:02 +00:00
NSObjCRuntime.m Initial revision 1995-08-24 22:35:25 +00:00
NSObject.m Formatting change. 1996-02-24 16:38:43 +00:00
NSProcessInfo.m WinNT and thread-related odifications from Scott Christley 1996-02-13 15:43:30 +00:00
NSRange.m Include from <Foundation/...>, not <foundation/...>. 1995-04-17 21:13:20 +00:00
NSSet.m ([NSSet +set]): Use +alloc, not _concreteClass. This 1995-11-03 22:24:14 +00:00
NSString.m ([NSString -hash]): Don't use elt_* function, and use 1996-02-22 21:50:35 +00:00
NSThread.m New files from Scott Christley 1996-02-13 15:40:05 +00:00
NSTimeZone.m ([NSTimeZone -encodeWithCoder:]): Avoid warning by removing type from 1995-08-23 16:15:22 +00:00
NSUser.c Initial revision 1995-08-02 15:37:10 +00:00
NSValue.m ([NSValueDecoder +newWithCoder:]): Comment out for now; I think it 1996-02-22 16:02:48 +00:00
NSZone.c *** empty log message *** 1995-08-23 15:18:14 +00:00
null-load.h Initial revision 1995-04-03 20:49:14 +00:00
number.c *** empty log message *** 1996-02-13 02:31:48 +00:00
NXConnection.m Use new-style method name "..ValueOfObjCType" 1996-01-23 23:57:17 +00:00
NXProtocolChecker.m Initial revision 1994-11-08 16:44:01 +00:00
NXProxy.m Initial revision 1994-11-08 16:44:01 +00:00
NXStringTable.m Fri Mar 31 09:10:50 1995 Adam Fedor <fedor@boulder.colorado.edu> 1995-04-03 01:33:51 +00:00
NXStringTable_scan.l Added header comment. 1995-04-06 19:41:46 +00:00
o_vprintf.c Initial revision 1996-01-22 23:22:11 +00:00
o_vscanf.c Initial revision 1994-11-04 16:29:24 +00:00
objc-gnu2next.m Convert Class* to Class.(): 1995-01-26 17:55:52 +00:00
objc-load.c WinNT and thread-related odifications from Scott Christley 1996-02-13 15:43:30 +00:00
objc-malloc.c Patched from mail. See ChangeLog 1995-10-05 22:22:28 +00:00
ObjectRetaining.m *** empty log message *** 1994-11-08 20:12:12 +00:00
OrderedCollection.m Many fixes, continuing conversion from old IndexedCollection.m 1996-02-22 16:03:55 +00:00
Port.m ([Port -invalidate]): Post PortBecameInvalidNotification. 1996-03-03 00:36:53 +00:00
preface.m *** empty log message *** 1994-11-08 20:12:12 +00:00
ProtocolEnforcer.m Initial revision 1996-01-22 23:22:11 +00:00
Proxy.m Change many ivar names. 1996-03-06 14:16:04 +00:00
Queue.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
Random.m Convert to new Coder scheme. Use -initWithCoder instead 1995-04-09 01:53:53 +00:00
RawCStream.m Fix typos. 1996-02-13 17:33:41 +00:00
RBTree.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
RBTreeEltNode.m (initialize): Return void. 1995-03-23 03:50:09 +00:00
RBTreeNode.m Include <objects/NSString.h> for @"" in encoding withName:. 1996-01-24 14:11:55 +00:00
ReleasePool.m Initial revision 1996-01-22 23:22:11 +00:00
RetainingNotifier.m (autorelease): Implemented. 1995-03-23 03:38:44 +00:00
Ring.m Initial revision 1996-01-22 23:22:11 +00:00
RNGAdditiveCongruential.m Convert to new Coder scheme. Use -initWithCoder instead 1995-04-09 01:53:53 +00:00
RNGBerkeley.m Convert to new Coder scheme. Use -initWithCoder instead 1995-04-09 01:53:53 +00:00
Set.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
simple-load.h (__objc_dynamic_find_symbol): Cast to drop const type, and avoid warning. 1996-02-22 21:21:30 +00:00
SocketPort.m WinNT and thread-related odifications from Scott Christley 1996-02-13 15:43:30 +00:00
SplayTree.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
Stack.m Overhaul for new collection class scheme to improve distributed objects and NeXT-compatibility. 1996-02-22 15:11:43 +00:00
StdioStream.m ([Stream -close]): Method renamed from -closeStream. 1996-02-24 16:37:55 +00:00
stdobjects.m *** empty log message *** 1994-11-08 20:12:12 +00:00
Storage.m ([Storage -insertElement:at:]): Increment numElements. (Reported by 1996-01-09 20:24:52 +00:00
Stream.m ([Stream -close]): Method renamed from -closeStream. 1996-02-24 16:37:55 +00:00
String.m ([String -hash]): Don't use elt_* function, and use 1996-02-22 21:50:25 +00:00
SunRpcPort.m Initial revision 1996-01-22 23:22:11 +00:00
TcpPort.m Many ivar names changed for clarity. Some new ivars added; see 1996-03-06 14:35:57 +00:00
TextCStream.m ([TextCStream -encodeValueOfCType:at:withName:]): Remove the asserts 1996-01-27 00:55:00 +00:00
Thread.m Initial revision 1996-01-22 23:22:11 +00:00
Time.m Include Sequent support. (Thanks to Matt Nelson <nelsonm@ctron.com>). 1995-06-29 01:05:29 +00:00
Tree.m Initial revision 1996-01-22 23:22:11 +00:00
TreeNode.m Use string objects instead of C strings 1996-01-24 03:33:21 +00:00
UdpPort.m New file. 1996-03-01 16:06:57 +00:00
vfscanf.c Initial revision 1996-01-22 23:22:11 +00:00
x-basics.c.in New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00
x-callbacks.c.in New version from Albin Jones, plus fixes by McCallum. 1996-02-22 15:25:44 +00:00