@@ -24,11 +24,11 @@ #import "OFIPXSocket.h" #import "OFSocket.h" #import "OFSocket+Private.h" #import "OFAlreadyConnectedException.h" -#import "OFBindSocketFailedException.h" +#import "OFBindIPXSocketFailedException.h" @implementation OFIPXSocket @dynamic delegate; - (OFSocketAddress)bindToPort: (uint16_t)port packetType: (uint8_t)packetType @@ -51,11 +51,11 @@ _packetType = address.sockaddr.ipx.sipx_type = packetType; #endif if ((_socket = socket(address.sockaddr.ipx.sipx_family, SOCK_DGRAM | SOCK_CLOEXEC, protocol)) == OFInvalidSocketHandle) - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: packetType socket: self errNo: OFSocketErrNo()]; @@ -71,11 +71,11 @@ int errNo = OFSocketErrNo(); closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: packetType socket: self errNo: errNo]; } @@ -89,11 +89,11 @@ int errNo = OFSocketErrNo(); closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: packetType socket: self errNo: errNo]; } @@ -100,11 +100,11 @@ if (address.sockaddr.ipx.sipx_family != AF_IPX) { closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: packetType socket: self errNo: EAFNOSUPPORT]; }