|
Bugzilla – Full Text Bug Listing |
| Summary: | The getpeername() socket function is unimplemented. | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Goff <tgoff> |
| Component: | network | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | tomh, tommaso.pecorella |
| Priority: | P5 | ||
| Version: | pre-release | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Attachments: |
possible implementation
possible implementation possible implementation |
||
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 |
Created attachment 1761 [details] possible implementation The attached patch adds a GetPeerName() socket method.