@@ -29,29 +29,26 @@ #import "OFBindDDPSocketFailedException.h" @implementation OFDDPSocket @dynamic delegate; -- (OFSocketAddress)bindToNetwork: (uint16_t)network - node: (uint8_t)node - port: (uint8_t)port +- (OFSocketAddress)bindToNetwork: (uint16_t)network port: (uint8_t)port { OFSocketAddress address; #if SOCK_CLOEXEC == 0 && defined(HAVE_FCNTL_H) && defined(FD_CLOEXEC) int flags; #endif if (_socket != OFInvalidSocketHandle) @throw [OFAlreadyConnectedException exceptionWithSocket: self]; - address = OFSocketAddressMakeAppleTalk(network, node, port); + address = OFSocketAddressMakeAppleTalk(network, 0, port); if ((_socket = socket(address.sockaddr.at.sat_family, SOCK_DGRAM | SOCK_CLOEXEC, 0)) == OFInvalidSocketHandle) @throw [OFBindDDPSocketFailedException exceptionWithNetwork: network - node: node port: port socket: self errNo: OFSocketErrNo()]; _canBlock = true; @@ -68,11 +65,10 @@ closesocket(_socket); _socket = OFInvalidSocketHandle; @throw [OFBindDDPSocketFailedException exceptionWithNetwork: network - node: node port: port socket: self errNo: errNo]; } @@ -87,11 +83,10 @@ closesocket(_socket); _socket = OFInvalidSocketHandle; @throw [OFBindDDPSocketFailedException exceptionWithNetwork: network - node: node port: port socket: self errNo: errNo]; } @@ -99,14 +94,13 @@ closesocket(_socket); _socket = OFInvalidSocketHandle; @throw [OFBindDDPSocketFailedException exceptionWithNetwork: network - node: node port: port socket: self errNo: EAFNOSUPPORT]; } return address; } @end