Class: NetworkFacade::Unix::Server
- Inherits:
-
Base::Server
- Object
- Base::Server
- NetworkFacade::Unix::Server
- Defined in:
- lib/network-facade/unix.rb
Instance Method Summary collapse
- #accept ⇒ Object
-
#initialize(options = {}) ⇒ Server
constructor
A new instance of Server.
Methods inherited from Base::Server
#add, #client_id, #read, #start, #write
Constructor Details
Instance Method Details
#accept ⇒ Object
23 24 25 26 27 |
# File 'lib/network-facade/unix.rb', line 23 def accept client = @options[:server].accept client.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if @options[:close_exec] @fd << client end |