Class: EasySockets::UnixSocket
- Inherits:
-
BasicSocket
- Object
- BasicSocket
- EasySockets::UnixSocket
- Defined in:
- lib/easy_sockets/unix/unix_socket.rb
Overview
Subclass of BasicSocket that implement a Unix socket.
Constant Summary collapse
- DEFAULT_SOCKET_PATH =
'/tmp/unix_socket'
Constants inherited from BasicSocket
Instance Attribute Summary
Attributes inherited from BasicSocket
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ UnixSocket
constructor
It also accepts all options that BasicSocket#initialize accepts.
Methods inherited from BasicSocket
#connect, #disconnect, #send_msg
Methods included from Utils
Constructor Details
#initialize(opts = {}) ⇒ UnixSocket
It also accepts all options that BasicSocket#initialize accepts
17 18 19 20 |
# File 'lib/easy_sockets/unix/unix_socket.rb', line 17 def initialize(opts={}) super(opts) @socket_path = opts[:socket_path] || DEFAULT_SOCKET_PATH end |