Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pipe_ping.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <sys/mman.h>

Functions

void * create_shared_memory (size_t size)
 Ping IPC pipe test application, version 0.0.1. More...
 
double gettime ()
 
int main (int argc, char **argv)
 

Variables

const double NSECONDS = 1000000000.0
 

Function Documentation

void* create_shared_memory ( size_t  size)

Ping IPC pipe test application, version 0.0.1.

This application open pipe create process send data to this process and calculate sending time. To transfer started time to child process the shared memory used.

By Kirill Scherba™, 2019-01-24.

Referenced by main().

double gettime ( )

References NSECONDS.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Variable Documentation

const double NSECONDS = 1000000000.0

Referenced by gettime(), and main().