Differences From Artifact [6bae3c2189]:
- File src/OFDDPSocket.h — part of check-in [607d4d083c] at 2022-10-25 21:30:29 on branch trunk — OFDDPSocket: Don't include node in bind (user: js, size: 2584) [annotate] [blame] [check-ins using]
To Artifact [987ad37c95]:
- File
src/OFDDPSocket.h
— part of check-in
[8866fca78d]
at
2022-10-26 22:17:16
on branch trunk
— OFDDPSocket: Revert not including node in bind
Looking at the NetBSD code (/usr/src/sys/netatalk/ddp_usrreq.c), it
seems to be allowed to specify a node after all, contrary to what
atalk(4) says. Looking at the Linux code (net/appletalk/ddp.c) seems to
confirm this. (user: js, size: 2681) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
58 59 60 61 62 63 64 | * @note The delegate is retained for as long as asynchronous operations are * still ongoing. */ @property OF_NULLABLE_PROPERTY (assign, nonatomic) id <OFDDPSocketDelegate> delegate; /** | | > | > > | 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | * @note The delegate is retained for as long as asynchronous operations are * still ongoing. */ @property OF_NULLABLE_PROPERTY (assign, nonatomic) id <OFDDPSocketDelegate> delegate; /** * @brief Bind the socket to the specified network, node and port. * * @param network The network to bind to. 0 means any. * @param node The node to bind to. 0 means "this node". * @param port The port to bind to. 0 means to pick one and return it via the * returned socket address. * @return The address on which this socket can be reached * @throw OFBindDDPSockeFailedException Binding failed * @throw OFAlreadyConnectedException The socket is already bound */ - (OFSocketAddress)bindToNetwork: (uint16_t)network node: (uint8_t)node port: (uint8_t)port; @end OF_ASSUME_NONNULL_END |