Class: Cosmos::UdpReadSocket
- Inherits:
-
UdpReadWriteSocket
- Object
- UdpReadWriteSocket
- Cosmos::UdpReadSocket
- Defined in:
- lib/cosmos/io/udp_sockets.rb
Overview
Creates a UDPSocket and implements a non-blocking read.
Instance Method Summary collapse
-
#initialize(recv_port = 0, multicast_address = nil, multicast_interface_address = nil, bind_address = "0.0.0.0") ⇒ UdpReadSocket
constructor
A new instance of UdpReadSocket.
Methods inherited from UdpReadWriteSocket
#method_missing, multicast?, #read, #write
Constructor Details
#initialize(recv_port = 0, multicast_address = nil, multicast_interface_address = nil, bind_address = "0.0.0.0") ⇒ UdpReadSocket
Returns a new instance of UdpReadSocket.
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/cosmos/io/udp_sockets.rb', line 176 def initialize( recv_port = 0, multicast_address = nil, multicast_interface_address = nil, bind_address = "0.0.0.0" ) super( recv_port, bind_address, nil, multicast_address, multicast_interface_address, 1, true, false) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cosmos::UdpReadWriteSocket