mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
9ba040ba4f
commit
27b1833e20
1 changed files with 7 additions and 8 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue