class Socket
Included Modules
- Crystal::System::Socket
- IO::Buffered
Defined in:
stdlib/socket.crInstance Method Summary
-
#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
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) : Int64copy(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