Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vmdsock.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netdb.h>
#include <errno.h>
#include "vmdsock.h"

Go to the source code of this file.

Defines

#define VMDSOCKINTERNAL   1

Functions

int vmdsock_init (void)
void * vmdsock_create (void)
int vmdsock_connect (void *v, const char *host, int port)
int vmdsock_bind (void *v, int port)
int vmdsock_listen (void *v)
void * vmdsock_accept (void *v)
int vmdsock_write (void *v, const void *buf, int len)
int vmdsock_read (void *v, void *buf, int len)
void vmdsock_shutdown (void *v)
void vmdsock_destroy (void *v)
int vmdsock_selread (void *v, int sec)
int vmdsock_selwrite (void *v, int sec)


Define Documentation

#define VMDSOCKINTERNAL   1
 

Definition at line 26 of file vmdsock.c.


Function Documentation

void* vmdsock_accept void *    v
 

Definition at line 119 of file vmdsock.c.

References NULL.

int vmdsock_bind void *    v,
int    port
 

Definition at line 105 of file vmdsock.c.

int vmdsock_connect void *    v,
const char *    host,
int    port
 

Definition at line 83 of file vmdsock.c.

References NULL.

void* vmdsock_create void   
 

Definition at line 67 of file vmdsock.c.

References NULL.

Referenced by VideoStream::cli_connect, VideoStream::cli_listen, VMDCollab::connect, IMDSim::IMDSim, VideoStream::srv_connect, VideoStream::srv_listen, and VMDCollab::startserver.

void vmdsock_destroy void *    v
 

Definition at line 175 of file vmdsock.c.

References NULL.

int vmdsock_init void   
 

Definition at line 48 of file vmdsock.c.

Referenced by VideoStream::cli_connect, VideoStream::cli_listen, IMDSim::IMDSim, VideoStream::srv_connect, and VideoStream::srv_listen.

int vmdsock_listen void *    v
 

Definition at line 114 of file vmdsock.c.

int vmdsock_read void *    v,
void *    buf,
int    len
 

Definition at line 153 of file vmdsock.c.

int vmdsock_selread void *    v,
int    sec
 

Definition at line 188 of file vmdsock.c.

References NULL.

int vmdsock_selwrite void *    v,
int    sec
 

Definition at line 205 of file vmdsock.c.

References NULL.

void vmdsock_shutdown void *    v
 

Definition at line 163 of file vmdsock.c.

References NULL.

int vmdsock_write void *    v,
const void *    buf,
int    len
 

Definition at line 144 of file vmdsock.c.


Generated on Mon Dec 9 02:45:37 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002