getsockname
getsockname(sock::Union{TCPServer, TCPSocket}) -> (IPAddr,UInt16)
Get the IP address and the port that the given TCP socket is connected to (or bound to, in the case of TCPServer).
Examples
See Also
accept, bind, :@spawn, connect, fetch, getaddrinfo, gethostname, getipaddr, getsockname, init_worker, IPv4, IPv6, isready, issocket, kill, listen, recv, recvfrom, remotecall, remotecall_fetch, remotecall_wait, RemoteRef, send, setopt,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.