DTS Application Library  0.2.3
Application library containing referenced objects and interfaces to common libraries
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
unixsock.c File Reference

Attach a thread to a unix socket start a new thread on connect. More...

#include <sys/socket.h>
#include <libgen.h>
#include <sys/stat.h>
#include <linux/un.h>
#include <linux/limits.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/dtsapp.h"

Go to the source code of this file.

Data Structures

struct  unixserv_sockthread
 Unix socket server data structure. More...
 
struct  unixclient_sockthread
 Unix socket client data structure. More...
 

Functions

struct fwsocketunixsocket_server (const char *sock, int protocol, int mask, socketrecv read, void *data)
 Create and run UNIX server socket thread. More...
 
struct fwsocketunixsocket_client (const char *sock, int protocol, socketrecv read, void *data)
 Create a client thread on the socket. More...
 

Detailed Description

Attach a thread to a unix socket start a new thread on connect.

A thread is started on the sockect and will start a new client thread on each connection with the socket as the data

Definition in file unixsock.c.