We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b16e8f commit 28e30a3Copy full SHA for 28e30a3
stdlib/Sockets/src/Sockets.jl
@@ -806,6 +806,7 @@ socket is connected to. Valid only for connected TCP sockets.
806
getpeername(sock::TCPSocket) = _sockname(sock, false)
807
808
function _sockname(sock, self=true)
809
+ sock.status == StatusInit || check_open(sock)
810
rport = Ref{Cushort}(0)
811
raddress = zeros(UInt8, 16)
812
rfamily = Ref{Cuint}(0)
0 commit comments