@@ -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 @@ -328,11 +328,11 @@ address = OFSocketAddressMakeIPX(0, zeroNode, port); if ((_socket = socket(address.sockaddr.ipx.sipx_family, SOCK_STREAM | SOCK_CLOEXEC, NSPROTO_SPX)) == OFInvalidSocketHandle) - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: SPXPacketType socket: self errNo: OFSocketErrNo()]; @@ -348,11 +348,11 @@ int errNo = OFSocketErrNo(); closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: SPXPacketType socket: self errNo: errNo]; } @@ -366,11 +366,11 @@ int errNo = OFSocketErrNo(); closesocket(_socket); _socket = OFInvalidSocketHandle; - @throw [OFBindSocketFailedException + @throw [OFBindIPXSocketFailedException exceptionWithPort: port packetType: SPXPacketType socket: self errNo: errNo]; } @@ -377,15 +377,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