Skip to content

Commit

Permalink
Add eof for client socket
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Aug 23, 2024
1 parent d755521 commit 12bae54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sockets/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ Base.unsafe_read(sock::Client, ptr::Ptr{UInt8}, n::Integer) = unsafe_read(sock.r

Base.skip(sock::Client, n) = skip(sock.readbuf, n)
Base.bytesavailable(sock::Client) = bytesavailable(sock.readbuf)
Base.eof(sock::Client) = eof(sock.readbuf)
Base.isopen(sock::Client) = sock.slot == C_NULL ? false : aws_socket_is_open(aws_socket_handler_get_socket(FieldRef(sock, :handler)))
Base.readbytes!(sock::Client, buf::Vector{UInt8}, nb=length(buf)) = readbytes!(sock.readbuf, buf, nb)

Expand Down

0 comments on commit 12bae54

Please sign in to comment.