getRemoteName()
Cache the TCP peer address as a string and pass it to createChannel().
This commit is contained in:
@@ -71,6 +71,11 @@ inline int sendto(int s, const char *buf, size_t len, int flags, const struct so
|
||||
char strBuffer[64];
|
||||
epicsSocketConvertErrnoToString(strBuffer, sizeof(strBuffer));
|
||||
LOG(logLevelDebug, "getsockname error: %s.", strBuffer);
|
||||
_remoteName = "<unknown>:0";
|
||||
} else {
|
||||
char strBuffer[64];
|
||||
sockAddrToA(&_remoteAddress.sa, strBuffer, sizeof(strBuffer));
|
||||
_remoteName = strBuffer;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user