Bugzilla – Bug 1835
The getpeername() socket function is unimplemented.
Last modified: 2016-02-26 00:49:29 UTC
Created attachment 1761 [details] possible implementation The attached patch adds a GetPeerName() socket method.
Created attachment 1950 [details] possible implementation An updated patch is attached.
(In reply to Tom Goff from comment #1) > Created attachment 1950 [details] > possible implementation > > An updated patch is attached. Tom, has this been tested in your environment; are there any issues or do you think it is good to go?
Created attachment 1951 [details] possible implementation The previous version was a little premature. This version fixes some issues and adds some testing. Note that this patch makes socket error codes (m_errno) mutable; another approach would be to make GetPeerName() non-const.
shall we commit this ? Errno being mutable seems to be reasonable, also because it should be a global variable rather than a per-socket one.
merged in changeset 11925:323918f8bcee