mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Change references to non-existant UdpPacket class to UdpInPacket.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1180 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a5a2baa793
commit
259be49a34
1 changed files with 7 additions and 8 deletions
|
@ -44,7 +44,7 @@
|
|||
@interface UdpOutPort (Private)
|
||||
+ newForSendingToSockaddr: (struct sockaddr_in*)addr;
|
||||
@end
|
||||
@interface UdpPacket (Private)
|
||||
@interface UdpInPacket (Private)
|
||||
- (void) _setReplyPort: p;
|
||||
@end
|
||||
|
||||
|
@ -99,7 +99,6 @@ static NSMapTable *port_number_2_in_port = NULL;
|
|||
+ newForReceivingFromPortNumber: (unsigned short)n
|
||||
{
|
||||
UdpInPort* p;
|
||||
int i, count;
|
||||
|
||||
assert (n > IPPORT_USERRESERVED);
|
||||
|
||||
|
@ -161,7 +160,7 @@ static NSMapTable *port_number_2_in_port = NULL;
|
|||
int r;
|
||||
struct sockaddr_in remote_addr;
|
||||
int remote_len;
|
||||
UdpPacket *packet;
|
||||
UdpInPacket *packet;
|
||||
|
||||
if (udp_port_debug)
|
||||
fprintf(stderr, "receiving from %d\n", [self portNumber]);
|
||||
|
@ -191,7 +190,7 @@ static NSMapTable *port_number_2_in_port = NULL;
|
|||
/* There is a packet on the socket ready for us to receive. */
|
||||
|
||||
/* Create a packet. */
|
||||
packet = [[UdpPacket alloc] initWithCapacity: MAX_PACKET_SIZE];
|
||||
packet = [[UdpInPacket alloc] initWithCapacity: MAX_PACKET_SIZE];
|
||||
|
||||
/* Fill it with the UDP packet data. */
|
||||
remote_len = sizeof(remote_addr);
|
||||
|
@ -238,7 +237,7 @@ static NSMapTable *port_number_2_in_port = NULL;
|
|||
|
||||
- (Class) packetClass
|
||||
{
|
||||
return [UdpPacket class];
|
||||
return [UdpInPacket class];
|
||||
}
|
||||
|
||||
- (Class) classForConnectedCoder: aRmc
|
||||
|
@ -384,7 +383,7 @@ static Array *udp_out_port_array;
|
|||
|
||||
- (Class) packetClass
|
||||
{
|
||||
return [UdpPacket class];
|
||||
return [UdpInPacket class];
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: aCoder
|
||||
|
@ -416,11 +415,11 @@ static Array *udp_out_port_array;
|
|||
|
||||
|
||||
|
||||
@implementation UdpPacket
|
||||
@implementation UdpInPacket
|
||||
|
||||
- (void) _setReplyPort: p
|
||||
{
|
||||
reply_port = p;
|
||||
[self notImplemented: _cmd];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue