mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
(main): Minor fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1141 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
75db1d83a8
commit
8305c5798f
1 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ int main (int argc, char *argv[])
|
|||
|
||||
in_port = [TcpInPort newForReceiving];
|
||||
|
||||
[in_port setPacketInvocation:
|
||||
[in_port setReceivedPacketInvocation:
|
||||
[[[ObjectFunctionInvocation alloc]
|
||||
initWithObjectFunction: handle_incoming_packet]
|
||||
autorelease]];
|
||||
|
@ -40,10 +40,10 @@ int main (int argc, char *argv[])
|
|||
|
||||
for (i = 0; i < 10; i++)
|
||||
{
|
||||
packet = [[TcpPacket alloc] initForSendingWithCapacity: 100
|
||||
replyPort: in_port];
|
||||
packet = [[TcpOutPacket alloc] initForSendingWithCapacity: 100
|
||||
replyInPort: in_port];
|
||||
[packet writeFormat: @"Here is message number %d", i];
|
||||
[out_port sendPacket: packet withTimeout: 20 * 1000];
|
||||
[out_port sendPacket: packet];
|
||||
[packet release];
|
||||
|
||||
[RunLoop runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 1.0]];
|
||||
|
|
Loading…
Reference in a new issue