class Socket

Included Modules

Defined in:

stdlib/socket.cr

Instance Method Summary

Instance methods inherited from module IO::Evented

evented_sendfile(limit : Int, errno_msg : String, &) : Int64 evented_sendfile

Instance methods inherited from class IO

skip(bytes_count : Int) : Int64 skip, skip_to_end : Int64 skip_to_end

Class methods inherited from class IO

copy(src, dst, limit : Int) : Int64
copy(src, dst) : Int64
copy

Instance Method Detail

def sendfile(file : IO::FileDescriptor, limit : Int) : Int64 #

Zero-copy implementation of sending limit bytes of file to the socket Returns the number of bytes sent


[View source]