A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.ruby-lang.org/en/3.4/Socket/UDPSource.html below:

class Socket::UDPSource - Documentation for Ruby 3.4

  1. Socket::
  2. UDPSource
class Socket::UDPSource

UDP/IP address information used by Socket.udp_server_loop.

Attributes Public Class Methods

Source

def initialize(remote_address, local_address, &reply_proc)
  @remote_address = remote_address
  @local_address = local_address
  @reply_proc = reply_proc
end

remote_address is an Addrinfo object.

local_address is an Addrinfo object.

reply_proc is a Proc used to send reply back to the source.

Public Instance Methods

Source

def reply(msg)
  @reply_proc.call msg
end

Sends the String msg to the source


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4