Sha256: df3b6725e71e549ae0e472a67808b52b94c18e8467db391b48f8abdfd4a6a692

Contents?: true

Size: 320 Bytes

Versions: 6

Compression:

Stored size: 320 Bytes

Contents

module RubySL
  module Socket
    module Foreign
      class Servent < Rubinius::FFI::Struct
        config('rbx.platform.servent', :s_name, :s_aliases, :s_port, :s_proto)

        def name
          self[:s_name].read_string
        end

        def port
          self[:s_port]
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubysl-socket-2.2.1 lib/rubysl/socket/foreign/servent.rb
rubysl-socket-2.2 lib/rubysl/socket/foreign/servent.rb
rubysl-socket-2.1.3 lib/rubysl/socket/foreign/servent.rb
rubysl-socket-2.1.2 lib/rubysl/socket/foreign/servent.rb
rubysl-socket-2.1.1 lib/rubysl/socket/foreign/servent.rb
rubysl-socket-2.1.0 lib/rubysl/socket/foreign/servent.rb