Class: Rev::TCPSocket
- Inherits:
-
Object
- Object
- Rev::TCPSocket
- Defined in:
- lib/internethakai/hakairev/monkey.rb
Defined Under Namespace
Classes: TCPConnectSocket
Class Method Summary collapse
Class Method Details
.connect(addr, port, *args) ⇒ Object
4 5 6 7 8 |
# File 'lib/internethakai/hakairev/monkey.rb', line 4 def self.connect(addr, port, *args) #DNS解決済み。ip v4しかこないことを前提する family = ::Socket::AF_INET return super(TCPConnectSocket.new(family, addr, port), *args) # this creates a 'real' write buffer so we're ok there with regards to already having a write buffer from the get go end |