Method: TCPSocket#reuse_addr
- Defined in:
- lib/polyphony/extensions/socket.rb
#reuse_addr ⇒ ::Socket
Sets the REUSEADDR option.
305 306 307 308 |
# File 'lib/polyphony/extensions/socket.rb', line 305 def reuse_addr setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR, 1) self end |