Skip to content

Commit

Permalink
Base.TCPServer --> Sockets.TCPServer (#29230)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay authored and JeffBezanson committed Sep 18, 2018
1 parent 3a15e6b commit abe38f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/src/manual/networking-and-streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,25 +210,25 @@ same function may also be used to create various other kinds of servers:

```julia-repl
julia> listen(2000) # Listens on localhost:2000 (IPv4)
Base.TCPServer(active)
Sockets.TCPServer(active)
julia> listen(ip"127.0.0.1",2000) # Equivalent to the first
Base.TCPServer(active)
Sockets.TCPServer(active)
julia> listen(ip"::1",2000) # Listens on localhost:2000 (IPv6)
Base.TCPServer(active)
Sockets.TCPServer(active)
julia> listen(IPv4(0),2001) # Listens on port 2001 on all IPv4 interfaces
Base.TCPServer(active)
Sockets.TCPServer(active)
julia> listen(IPv6(0),2001) # Listens on port 2001 on all IPv6 interfaces
Base.TCPServer(active)
Sockets.TCPServer(active)
julia> listen("testsocket") # Listens on a UNIX domain socket
Base.PipeServer(active)
Sockets.PipeServer(active)
julia> listen("\\\\.\\pipe\\testsocket") # Listens on a Windows named pipe
Base.PipeServer(active)
Sockets.PipeServer(active)
```

Note that the return type of the last invocation is different. This is because this server does not
Expand Down

0 comments on commit abe38f1

Please sign in to comment.