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:
mccallum 1996-03-18 14:02:44 +00:00
parent 9ba040ba4f
commit 27b1833e20

View file

@ -44,7 +44,7 @@
@interface UdpOutPort (Private) @interface UdpOutPort (Private)
+ newForSendingToSockaddr: (struct sockaddr_in*)addr; + newForSendingToSockaddr: (struct sockaddr_in*)addr;
@end @end
@interface UdpPacket (Private) @interface UdpInPacket (Private)
- (void) _setReplyPort: p; - (void) _setReplyPort: p;
@end @end
@ -99,7 +99,6 @@ static NSMapTable *port_number_2_in_port = NULL;
+ newForReceivingFromPortNumber: (unsigned short)n + newForReceivingFromPortNumber: (unsigned short)n
{ {
UdpInPort* p; UdpInPort* p;
int i, count;
assert (n > IPPORT_USERRESERVED); assert (n > IPPORT_USERRESERVED);
@ -161,7 +160,7 @@ static NSMapTable *port_number_2_in_port = NULL;
int r; int r;
struct sockaddr_in remote_addr; struct sockaddr_in remote_addr;
int remote_len; int remote_len;
UdpPacket *packet; UdpInPacket *packet;
if (udp_port_debug) if (udp_port_debug)
fprintf(stderr, "receiving from %d\n", [self portNumber]); 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. */ /* There is a packet on the socket ready for us to receive. */
/* Create a packet. */ /* Create a packet. */
packet = [[UdpPacket alloc] initWithCapacity: MAX_PACKET_SIZE]; packet = [[UdpInPacket alloc] initWithCapacity: MAX_PACKET_SIZE];
/* Fill it with the UDP packet data. */ /* Fill it with the UDP packet data. */
remote_len = sizeof(remote_addr); remote_len = sizeof(remote_addr);
@ -238,7 +237,7 @@ static NSMapTable *port_number_2_in_port = NULL;
- (Class) packetClass - (Class) packetClass
{ {
return [UdpPacket class]; return [UdpInPacket class];
} }
- (Class) classForConnectedCoder: aRmc - (Class) classForConnectedCoder: aRmc
@ -384,7 +383,7 @@ static Array *udp_out_port_array;
- (Class) packetClass - (Class) packetClass
{ {
return [UdpPacket class]; return [UdpInPacket class];
} }
- (void) encodeWithCoder: aCoder - (void) encodeWithCoder: aCoder
@ -416,11 +415,11 @@ static Array *udp_out_port_array;
@implementation UdpPacket @implementation UdpInPacket
- (void) _setReplyPort: p - (void) _setReplyPort: p
{ {
reply_port = p; [self notImplemented: _cmd];
} }
@end @end