mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Method name changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1142 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8305c5798f
commit
401f21c5d9
1 changed files with 6 additions and 6 deletions
|
@ -28,7 +28,7 @@ id announce_broken_connection (id notification)
|
|||
|
||||
static id port = nil;
|
||||
|
||||
id handle_incoming_packet (id packet)
|
||||
id handle_incoming_packet (TcpInPacket *packet)
|
||||
{
|
||||
static unsigned message_count = 0;
|
||||
id reply_port;
|
||||
|
@ -38,14 +38,14 @@ id handle_incoming_packet (id packet)
|
|||
fwrite ([packet streamBuffer] + [packet streamBufferPrefix],
|
||||
[packet streamEofPosition], 1, stdout);
|
||||
fprintf (stdout, "<\n");
|
||||
reply_port = [packet replyPort];
|
||||
reply_port = [packet replyOutPort];
|
||||
[packet release];
|
||||
|
||||
packet = [[TcpPacket alloc] initForSendingWithCapacity: 100
|
||||
replyPort: port];
|
||||
packet = [[TcpOutPacket alloc] initForSendingWithCapacity: 100
|
||||
replyInPort: port];
|
||||
[packet writeFormat: @"Your's was my message number %d",
|
||||
message_count];
|
||||
[reply_port sendPacket: packet withTimeout: 20 * 1000];
|
||||
[reply_port sendPacket: packet];
|
||||
[packet release];
|
||||
return nil;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ int main (int argc, char *argv[])
|
|||
printf ("Waiting for connections.\n");
|
||||
|
||||
#if 1
|
||||
[port setPacketInvocation:
|
||||
[port setReceivedPacketInvocation:
|
||||
[[[ObjectFunctionInvocation alloc]
|
||||
initWithObjectFunction: handle_incoming_packet]
|
||||
autorelease]];
|
||||
|
|
Loading…
Reference in a new issue