Defines | Functions
ipcommunication.c File Reference
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <ypparam.h>
#include <msq.win32.h>
#include <ipcommunication.h>
#include <utility.h>
#include <yprintf.h>
Include dependency graph for ipcommunication.c:

Go to the source code of this file.

Defines

#define SIZE_TYPE   unsigned int
#define SOCK_DATATYPE   void *
#define SOCK_SHUTDOWN_OPTION   SHUT_RDWR

Functions

void ipcmd_close (struct ipcmd_t *ipcmd)
void ipcmd_flush (struct ipcmd_t *ipcmd)
void ipcmd_flush_msq (struct ipcmd_t *ipcmd)
void ipcmd_flush_tcp (struct ipcmd_t *ipcmd)
int ipcmd_open_msq (struct ipcmd_t *ipcmd, int key, int creat)
int ipcmd_open_tcp (struct ipcmd_t *ipcmd, char *host, int port)
int ipcmd_recv (struct ipcmd_t *ipcmd, YPSpur_msg *data)
int ipcmd_recv_msq (struct ipcmd_t *ipcmd, YPSpur_msg *data)
int ipcmd_recv_tcp (struct ipcmd_t *ipcmd, YPSpur_msg *data)
int ipcmd_send (struct ipcmd_t *ipcmd, YPSpur_msg *data)
int ipcmd_send_msq (struct ipcmd_t *ipcmd, YPSpur_msg *data)
int ipcmd_send_tcp (struct ipcmd_t *ipcmd, YPSpur_msg *data)

Define Documentation

#define SIZE_TYPE   unsigned int

Definition at line 56 of file ipcommunication.c.

#define SOCK_DATATYPE   void *

Definition at line 55 of file ipcommunication.c.

#define SOCK_SHUTDOWN_OPTION   SHUT_RDWR

Definition at line 54 of file ipcommunication.c.


Function Documentation

void ipcmd_close ( struct ipcmd_t ipcmd)

Definition at line 332 of file ipcommunication.c.

void ipcmd_flush ( struct ipcmd_t ipcmd)

Definition at line 365 of file ipcommunication.c.

void ipcmd_flush_msq ( struct ipcmd_t ipcmd)

Definition at line 121 of file ipcommunication.c.

void ipcmd_flush_tcp ( struct ipcmd_t ipcmd)

Definition at line 328 of file ipcommunication.c.

int ipcmd_open_msq ( struct ipcmd_t ipcmd,
int  key,
int  creat 
)

Definition at line 59 of file ipcommunication.c.

int ipcmd_open_tcp ( struct ipcmd_t ipcmd,
char *  host,
int  port 
)

Definition at line 137 of file ipcommunication.c.

int ipcmd_recv ( struct ipcmd_t ipcmd,
YPSpur_msg data 
)

Definition at line 359 of file ipcommunication.c.

int ipcmd_recv_msq ( struct ipcmd_t ipcmd,
YPSpur_msg data 
)

Definition at line 104 of file ipcommunication.c.

int ipcmd_recv_tcp ( struct ipcmd_t ipcmd,
YPSpur_msg data 
)

Definition at line 222 of file ipcommunication.c.

int ipcmd_send ( struct ipcmd_t ipcmd,
YPSpur_msg data 
)

Definition at line 353 of file ipcommunication.c.

int ipcmd_send_msq ( struct ipcmd_t ipcmd,
YPSpur_msg data 
)

Definition at line 89 of file ipcommunication.c.

int ipcmd_send_tcp ( struct ipcmd_t ipcmd,
YPSpur_msg data 
)

Definition at line 193 of file ipcommunication.c.



yp-spur
Author(s):
autogenerated on Fri May 10 2019 02:52:19