Class: UNIXServer
- Inherits:
-
UNIXSocket
- Object
- IO
- BasicSocket
- UNIXSocket
- UNIXServer
- Defined in:
- lib/polyphony/extensions/socket.rb
Overview
UNIXServer extensions
Instance Method Summary collapse
-
#accept ⇒ UNIXSocket
New connection.
-
#accept_loop {|UNIXSocket| ... } ⇒ nil
Accepts incoming connections in an infinite loop.
Methods inherited from UNIXSocket
#<<, #feed_loop, #read, #read_nonblock, #readpartial, #recv, #recv_loop, #send, #write, #write_nonblock
Methods inherited from BasicSocket
#__read_method__, #__write_method__
Methods inherited from IO
#close, copy_stream, deflate, double_splice, #double_splice, #feed_loop, gunzip, gzip, http1_splice_chunked, inflate, orig_readlines, #read_loop, readlines, splice, #splice_from, tee, #tee_from, #wait_readable, #wait_writable
Instance Method Details
#accept ⇒ UNIXSocket
Returns new connection.
495 496 497 |
# File 'lib/polyphony/extensions/socket.rb', line 495 def accept Polyphony.backend_accept(self, UNIXSocket) end |
#accept_loop {|UNIXSocket| ... } ⇒ nil
Accepts incoming connections in an infinite loop.
503 504 505 |
# File 'lib/polyphony/extensions/socket.rb', line 503 def accept_loop(&block) Polyphony.backend_accept_loop(self, UNIXSocket, &block) end |