Sha256: 6bf02271ddc9da1c19a0f17c5eeccfe74e700d189b77cea4fc420824d62cff17
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
module Cups module Http extend FFI::Library ffi_lib(Cups.libcups) # @overload httpConnectEncrypt(string, int, int) # @param hostname [String] # @param port [int] # @param encryption_settings [int] # @return [Pointer] pointer to a http_t object # @deprecated Please use httpConnect2 instead attach_function 'httpConnectEncrypt', [ :string, :int, :int], :pointer, blocking: true # @overload httpClose(pointer) # @param pointer [Pointer] to a http_t object attach_function 'httpClose', [ :pointer ], :void, blocking: true # Get a list of addresses for a hostname. # @overload httpAddrGetList(string, int, string) # @param hostname [String] # @param family [Integer] # @param port [String] # @return [Pointer] List of addresses or NULL attach_function 'httpAddrGetList', [:string, :int, :string], :pointer, blocking: true # Connect to a HTTP server. # @overload httpConnect2(string, int, pointer, int, int, int, int, pointer) # @param hostname [String] # @param port [Integer] # @param addrlist [Pointer] can be NULL # @param family [Integer] (AF_UNSPEC=0) # @param encryption_settings [Integer] from Cups.cupsEncryption() # @param blocking [Integer] # @param msec [Integer] use 5000 or less # @param cancel[Pointer] integer pointer, can be NULL # @return [Pointer] http_t object attach_function 'httpConnect2', [:string, :int, :pointer, :int, :int, :int, :int, :pointer], :pointer, blocking: true end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-cups-0.3.2 | lib/ffi-cups/ffi/http.rb |
ffi-cups-0.3.1 | lib/ffi-cups/ffi/http.rb |
ffi-cups-0.3.0 | lib/ffi-cups/ffi/http.rb |