Skip to content

File pl_comm.c

FileList > cubrid > src > sp > pl_comm.c

Go to the source code of this file

  • #include "pl_comm.h"
  • #include "config.h"
  • #include <assert.h>
  • #include <sys/types.h>
  • #include <sys/param.h>
  • #include <sys/socket.h>
  • #include <netinet/in.h>
  • #include <sys/uio.h>
  • #include <sys/un.h>
  • #include <netinet/tcp.h>
  • #include <arpa/inet.h>
  • #include <errno.h>
  • #include <unistd.h>
  • #include <netdb.h>
  • #include "pl_file.h"
  • #include "connection_support.hpp"
  • #include "porting.h"
  • #include "error_manager.h"
  • #include "environment_variable.h"
  • #include "system_parameter.h"
  • #include "object_representation.h"
  • #include "host_lookup.h"
  • #include "network_interface_cl.h"
  • #include "memory_wrapper.hpp"

Public Functions

Type Name
int pl_connect_server (const char * db_name, int server_port, SOCKET & out)
void pl_disconnect_server (SOCKET & sockfd)
char * pl_get_socket_file_path (const char * db_name)
int pl_ping (SOCKET fd)
int pl_readn (SOCKET fd, void * vptr, int n)
int pl_readn_with_timeout (SOCKET fd, void * vptr, int n, int timeout)
int pl_writen (SOCKET fd, const void * vptr, int n)

Public Static Functions

Type Name
int pl_connect_server_tcp (int server_port, SOCKET & out)
int pl_connect_server_uds (const char * db_name, SOCKET & out)

Public Functions Documentation

function pl_connect_server

int pl_connect_server (
    const  char * db_name,
    int server_port,
    SOCKET & out
) 

function pl_disconnect_server

void pl_disconnect_server (
    SOCKET & sockfd
) 

function pl_get_socket_file_path

char * pl_get_socket_file_path (
    const  char * db_name
) 

function pl_ping

int pl_ping (
    SOCKET fd
) 

function pl_readn

int pl_readn (
    SOCKET fd,
    void * vptr,
    int n
) 

function pl_readn_with_timeout

int pl_readn_with_timeout (
    SOCKET fd,
    void * vptr,
    int n,
    int timeout
) 

function pl_writen

int pl_writen (
    SOCKET fd,
    const  void * vptr,
    int n
) 

Public Static Functions Documentation

function pl_connect_server_tcp

static int pl_connect_server_tcp (
    int server_port,
    SOCKET & out
) 

function pl_connect_server_uds

static int pl_connect_server_uds (
    const  char * db_name,
    SOCKET & out
) 


The documentation for this class was generated from the following file cubrid/src/sp/pl_comm.c