The Unix_socket class represents an abstraction for creating a unix socket ready to listen for new connections from clients.  
 More...
 | 
|   | Unix_socket (const std::string *unix_sockname, uint backlog) | 
|   | Constructor that takes pathname for unix socket to bind to and backlog specifying the length of pending connection queue.  More...
  | 
|   | 
| MYSQL_SOCKET  | get_listener_socket () | 
|   | Set up a listener socket which is ready to listen for connection from clients.  More...
  | 
|   | 
 | 
| bool  | create_lockfile () | 
|   | Create a lockfile which contains the pid of the mysqld instance started and pathname as name of unix socket pathname appended with .lock.  More...
  | 
|   | 
The Unix_socket class represents an abstraction for creating a unix socket ready to listen for new connections from clients. 
 
◆ Unix_socket()
  
  
      
        
          | Unix_socket::Unix_socket  | 
          ( | 
          const std::string *  | 
          unix_sockname,  | 
         
        
           | 
           | 
          uint  | 
          backlog  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Constructor that takes pathname for unix socket to bind to and backlog specifying the length of pending connection queue. 
- Parameters
 - 
  
    | unix_sockname | pointer to pathname for the created unix socket to bind.  | 
    | backlog | specifying the length of pending connection queue.  | 
  
   
 
 
◆ create_lockfile()
  
  
      
        
          | bool Unix_socket::create_lockfile  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Create a lockfile which contains the pid of the mysqld instance started and pathname as name of unix socket pathname appended with .lock. 
- Return values
 - 
  
    | False | if lockfile creation is successful else true if lockfile file could not be created.  | 
  
   
 
 
◆ get_listener_socket()
Set up a listener socket which is ready to listen for connection from clients. 
- Return values
 - 
  
    | valid | socket if successful else MYSQL_INVALID_SOCKET on failure.  | 
  
   
 
 
◆ m_backlog
  
  
      
        
          | uint Unix_socket::m_backlog | 
         
       
   | 
  
private   | 
  
 
 
◆ m_unix_sockname
  
  
      
        
          | std::string Unix_socket::m_unix_sockname | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: