Class: Mongo::Socket::Unix Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
::Mongo::Socket
|
|
|
Instance Chain:
self,
::Mongo::Socket,
Socket::Constants
|
|
| Inherits: |
Mongo::Socket
|
| Defined in: | lib/mongo/socket/unix.rb |
Overview
Wrapper for Unix sockets.
Constant Summary
::Mongo::Socket - Inherited
DEFAULT_TCP_KEEPCNT, DEFAULT_TCP_KEEPIDLE, DEFAULT_TCP_KEEPINTVL, DEFAULT_TCP_USER_TIMEOUT, SSL_ERROR, TIMEOUT_ERROR, TIMEOUT_PACK, WRITE_CHUNK_SIZE
Class Method Summary
-
.new(path, timeout, options = {}) ⇒ Unix
constructor
Internal use only
Internal use only
Initializes a new
Unixsocket.
::Mongo::Socket - Inherited
| .new | Initializes common socket attributes. |
Instance Attribute Summary
- #path ⇒ String readonly Internal use only
::Mongo::Socket - Inherited
Instance Method Summary
- #human_address private Internal use only
::Mongo::Socket - Inherited
| #close | Close the socket. |
| #connection_address, #connection_generation, | |
| #gets | Delegates gets to the underlying socket. |
| #pipe | listen on during the select system call when reading from the socket. |
| #read | Will read all data from the socket for the provided number of bytes. |
| #readbyte | Read a single byte from the socket. |
| #summary, | |
| #write | Writes data to the socket instance. |
| #allocate_string, | |
| #do_write | Writes data to the socket instance. |
| #human_address, #map_exceptions, #raise_timeout_error!, #read_buffer_size, | |
| #read_from_socket | Reads the |
| #read_with_timeout | Reads the |
| #read_without_timeout | Reads the |
| #set_keepalive_opts, #set_option, #set_socket_options, #unix_socket?, #wait_for_socket_to_be_writable, #write_chunk, | |
| #write_with_timeout | Writes data to to the socket, the write duration is limited to #timeout. |
| #write_without_timeout | Writes data to to the socket. |
Instance Attribute Details
#path ⇒ String (readonly)
# File 'lib/mongo/socket/unix.rb', line 53
attr_reader :path
Instance Method Details
#human_address (private)
# File 'lib/mongo/socket/unix.rb', line 57
def human_address path end