@@ -22,11 +22,11 @@ #import "OFRunLoop+Private.h" #import "OFSocket.h" #import "OFSocket+Private.h" #import "OFAlreadyConnectedException.h" -#import "OFBindSocketFailedException.h" +#import "OFBindIPXSocketFailedException.h" #import "OFConnectionFailedException.h" #import "OFNotOpenException.h" #ifndef NSPROTO_SPX # define NSPROTO_SPX 0 @@ -327,11 +327,11 @@ address = OFSocketAddressMakeIPX(0, zeroNode, port); if ((_socket = socket(address.sockaddr.ipx.sipx_family, SOCK_SEQPACKET | SOCK_CLOEXEC, NSPROTO_SPX)) == OFInvalidSocketHandle) - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: SPXPacketType socket: self errNo: OFSocketErrNo()]; @@ -347,11 +347,11 @@ int errNo = OFSocketErrNo(); closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: SPXPacketType socket: self errNo: errNo]; } @@ -365,11 +365,11 @@ int errNo = OFSocketErrNo(); closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: SPXPacketType socket: self errNo: errNo]; } @@ -376,15 +376,15 @@ if (address.sockaddr.ipx.sipx_family != AF_IPX) { closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: SPXPacketType socket: self errNo: EAFNOSUPPORT]; } return address; } @end