-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
ioInvolving the I/O subsystem: libuv, read, write, etc.Involving the I/O subsystem: libuv, read, write, etc.needs decisionA decision on this change is neededA decision on this change is needed
Description
On server
julia> server = listen(2000)
TcpServer(active)
julia> socket = accept(server)
On client
julia> cl_socket = connect(2000)
TcpSocket(open, 0 bytes waiting)
julia> isopen(cl_socket)
true
On server
julia> isopen(socket)
true
On client
julia> close(cl_socket)
julia> isopen(cl_socket)
false
On server
julia> isopen(socket)
true
isopen(stream) → Bool
Determine whether a stream is open (i.e. has not been closed yet). If the connection has been closed remotely (in case of e.g. a socket), isopen will return false
Metadata
Metadata
Assignees
Labels
ioInvolving the I/O subsystem: libuv, read, write, etc.Involving the I/O subsystem: libuv, read, write, etc.needs decisionA decision on this change is neededA decision on this change is needed