Skip to content

Commit

Permalink
HPCC-17017 Add port info to socket tracename
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Kelly <mark.kelly@lexisnexisrisk.com>
  • Loading branch information
mckellyln committed Jul 7, 2017
1 parent bbd297a commit bffe09a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions system/jlib/jsocket.cpp
Expand Up @@ -410,7 +410,7 @@ class CSocket: public ISocket, public CInterface
int peer_name(char *name,size32_t namemax);
SocketEndpoint &getPeerEndpoint(SocketEndpoint &ep);
IpAddress & getPeerAddress(IpAddress &addr);
SocketEndpoint &getEndpoint(SocketEndpoint &ep);
SocketEndpoint &getEndpoint(SocketEndpoint &ep) const override;
void set_return_addr(int port,const char *name); // sets returnep
void cancel_accept();
size32_t get_max_send_size();
Expand Down Expand Up @@ -1155,7 +1155,7 @@ void CSocket::set_return_addr(int port,const char *retname)
}


SocketEndpoint &CSocket::getEndpoint(SocketEndpoint &ep)
SocketEndpoint &CSocket::getEndpoint(SocketEndpoint &ep) const
{
if (state != ss_open) {
THROWJSOCKEXCEPTION(JSOCKERR_not_opened);
Expand Down
2 changes: 1 addition & 1 deletion system/jlib/jsocket.hpp
Expand Up @@ -332,7 +332,7 @@ class jlib_decl ISocket : extends IInterface
virtual IpAddress &getPeerAddress(IpAddress &addr)=0;

// Get local endpoint of socket
virtual SocketEndpoint &getEndpoint(SocketEndpoint &ep)=0;
virtual SocketEndpoint &getEndpoint(SocketEndpoint &ep) const = 0;

//
// Close socket
Expand Down
2 changes: 1 addition & 1 deletion system/security/securesocket/securesocket.cpp
Expand Up @@ -258,7 +258,7 @@ class CSecureSocket : implements ISecureSocket, public CInterface
}

// Get local endpoint of socket
virtual SocketEndpoint &getEndpoint(SocketEndpoint &ep)
virtual SocketEndpoint &getEndpoint(SocketEndpoint &ep) const override
{
return m_socket->getEndpoint(ep);
}
Expand Down

0 comments on commit bffe09a

Please sign in to comment.