Method: Usbmux::SafeStreamSocket#initialize
- Defined in:
- lib/usbmux/usbmux.rb
#initialize(family, address) ⇒ SafeStreamSocket
Returns a new instance of SafeStreamSocket.
12 13 14 15 |
# File 'lib/usbmux/usbmux.rb', line 12 def initialize(family, address) @sock = Socket.new(family, Socket::SOCK_STREAM) @sock.connect(address) end |