parent
abcd9fd2e8
commit
81e5a35d56
2 changed files with 2 additions and 2 deletions
|
|
@ -1295,7 +1295,7 @@ proc recvFrom*(socket: Socket, data: var string, length: int,
|
|||
|
||||
if result != -1:
|
||||
data.setLen(result)
|
||||
address = $inet_ntoa(sockAddress.sin_addr)
|
||||
address = getAddrString(cast[ptr SockAddr](addr(sockAddress)))
|
||||
port = ntohs(sockAddress.sin_port).Port
|
||||
else:
|
||||
raiseOSError(osLastError())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue