mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
([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
This commit is contained in:
parent
916a5ee316
commit
78362f95c8
1 changed files with 11 additions and 1 deletions
|
@ -33,6 +33,7 @@
|
||||||
#include <objects/Dictionary.h>
|
#include <objects/Dictionary.h>
|
||||||
#include <objects/Queue.h>
|
#include <objects/Queue.h>
|
||||||
#include <objects/mframe.h>
|
#include <objects/mframe.h>
|
||||||
|
#include <objects/Notification.h>
|
||||||
#include <Foundation/NSString.h>
|
#include <Foundation/NSString.h>
|
||||||
#include <Foundation/NSNotification.h>
|
#include <Foundation/NSNotification.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
@ -222,7 +223,7 @@ static int messages_received_count;
|
||||||
if ([aPort isEqual: [o inPort]])
|
if ([aPort isEqual: [o inPort]])
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
FOR_ARRAY_END;
|
END_FOR_ARRAY (connection_array);
|
||||||
[connection_array_gate unlock];
|
[connection_array_gate unlock];
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
@ -1203,6 +1204,9 @@ static int messages_received_count;
|
||||||
Well, perhaps it's a good idea just in case other side didn't really
|
Well, perhaps it's a good idea just in case other side didn't really
|
||||||
send us the shutdown; this way we let them know we're going away */
|
send us the shutdown; this way we let them know we're going away */
|
||||||
[self shutdown];
|
[self shutdown];
|
||||||
|
[NotificationDispatcher
|
||||||
|
postNotificationName: ConnectionBecameInvalidNotification
|
||||||
|
object: self];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This needs locks */
|
/* This needs locks */
|
||||||
|
@ -1231,3 +1235,9 @@ static int messages_received_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
||||||
|
/* Notification Strings. */
|
||||||
|
|
||||||
|
NSString *ConnectionBecameInvalidNotification
|
||||||
|
= @"ConnectionBecameInvalidNotification";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue