forked from celluloid/reel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Based on celluloid#123, which hasn't been merged yet.
- Loading branch information
Bruz Marzolf
committed
Dec 10, 2014
1 parent
0d366d8
commit b85d025
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Reel | ||
class Server | ||
class UNIX < Server | ||
|
||
# Create a new Reel HTTPS server | ||
# | ||
# @option options [String] socket path to bind to | ||
# @option options [Fixnum] backlog of requests to accept | ||
# | ||
# @return [Reel::Server::UNIX] Reel UNIX server actor | ||
def initialize(socket_path, options={}, &callback) | ||
server = Celluloid::IO::UNIXServer.new(socket_path) | ||
options[:socket_path] = socket_path | ||
super(server, options, &callback) | ||
end | ||
end | ||
end | ||
end |