mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
([TcpOutPort -encodeWithCoder:]): Add debugging message.
([TcpOutPort +newWithCoder:]): Add debugging message. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1203 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e974176a55
commit
f9ce451de0
1 changed files with 9 additions and 1 deletions
|
@ -723,7 +723,7 @@ static NSMapTable *out_port_bag = NULL;
|
|||
}
|
||||
}
|
||||
}
|
||||
/* xxx When the AcceptedSocket-style OutPort get's it's
|
||||
/* xxx When the AcceptedSocket-style OutPort gets its
|
||||
_remote_in_port_address set, we should make sure that there isn't
|
||||
already an OutPort with that address. */
|
||||
|
||||
|
@ -1021,6 +1021,10 @@ static NSMapTable *out_port_bag = NULL;
|
|||
@encode(typeof(_remote_in_port_address.sin_addr.s_addr))
|
||||
at: &(_remote_in_port_address.sin_addr.s_addr)
|
||||
withName: @"inet address"];
|
||||
if (debug_tcp_port)
|
||||
printf ("TcpOutPort encoded port %hd host %s\n",
|
||||
ntohs (_remote_in_port_address.sin_port),
|
||||
inet_ntoa (_remote_in_port_address.sin_addr));
|
||||
}
|
||||
|
||||
+ newWithCoder: aCoder
|
||||
|
@ -1034,6 +1038,10 @@ static NSMapTable *out_port_bag = NULL;
|
|||
[aCoder decodeValueOfCType: @encode(typeof(addr.sin_addr.s_addr))
|
||||
at: &(addr.sin_addr.s_addr)
|
||||
withName: NULL];
|
||||
if (debug_tcp_port)
|
||||
printf ("TcpOutPort decoded port %hd host %s\n",
|
||||
ntohs (addr.sin_port),
|
||||
inet_ntoa (addr.sin_addr));
|
||||
return [TcpOutPort newForSendingToSockaddr: &addr
|
||||
withAcceptedSocket: 0
|
||||
pollingInPort: nil];
|
||||
|
|
Loading…
Reference in a new issue