# UDPSocket (Class)

In: | resolv-replace.rb
Parent: | Object

## Methods

bind connect send

## External Aliases

bind -> original_resolv_bind
connect -> original_resolv_connect
send -> original_resolv_send

## Public Instance methods

bind(host, port)

[Source]

    # File resolv-replace.rb, line 29
      def bind(host, port)
        original_resolv_bind(Resolv.getaddress(host).to_s, port)
      end

connect(host, port)

[Source]

    # File resolv-replace.rb, line 34
      def connect(host, port)
        original_resolv_connect(Resolv.getaddress(host).to_s, port)
      end

send(mesg, flags, *rest)

[Source]

    # File resolv-replace.rb, line 39
      def send(mesg, flags, *rest)
        rest[0] = Resolv.getaddress(rest[0]).to_s unless rest.empty?
        original_resolv_send(mesg, flags, *rest)
      end

[Validate]