Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
x/net: add Deadline, ReadBuffer, ReadDeadline, WriteBuffer, WriteDeadline getters #13196
Currently there are the following setter functions in the net package for the IPConn, TCPConn, UDPConn, and UnixConn objects:
Under the covers, these all call the unix C
This shouldn't be too difficult to implement, since the generated
This could be useful for debugging and logging information, and for checking if the corresponding
I don't think these are generally useful enough to be worth the complexity they would add to the API. "shouldn't be too difficult" and "could be useful" are a very low bar, much lower than what is required for addition to the standard library. If you'd like to add them to x/net/ipv4 and x/net/ipv6, I guess that's fine.