Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Socket.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <iostream.h>
#include <bool.h>

Go to the source code of this file.

Defines

#define MAX_UDP_DATAGRAM   9126
#define MAX_INET_ADDR   28

Functions

int gethostname (char *name, unsigned int namelen)
int INET_getsockname (int socket, struct sockaddr_in *address, int *address_len)
int INET_sendto (int socket, char *message_addr, int length, int flags, struct sockaddr_in *dest_addr, int dest_len)
int INET_recvfrom (int socket, char *buffer, int length, int flags, struct sockaddr_in *address, int *address_len)
int INET_bind (int socket, struct sockaddr_in *address, int address_len)


Define Documentation

#define MAX_INET_ADDR   28
 

Definition at line 55 of file Socket.h.

#define MAX_UDP_DATAGRAM   9126
 

Definition at line 54 of file Socket.h.


Function Documentation

int INET_bind ( int socket,
struct sockaddr_in * address,
int address_len )
 

int INET_getsockname ( int socket,
struct sockaddr_in * address,
int * address_len )
 

Referenced by TCP_Socket::TCP_Socket(), UDP_Socket::UDP_Socket(), TCP_Socket::setUpActor(), and TCP_Socket::setUpShadow().

int INET_recvfrom ( int socket,
char * buffer,
int length,
int flags,
struct sockaddr_in * address,
int * address_len )
 

Referenced by UDP_Socket::recvID(), UDP_Socket::recvMatrix(), UDP_Socket::recvMsg(), UDP_Socket::recvVector(), UDP_Socket::setUpActor(), and UDP_Socket::setUpShadow().

int INET_sendto ( int socket,
char * message_addr,
int length,
int flags,
struct sockaddr_in * dest_addr,
int dest_len )
 

Referenced by UDP_Socket::sendID(), UDP_Socket::sendMatrix(), UDP_Socket::sendMsg(), UDP_Socket::sendVector(), UDP_Socket::setUpActor(), and UDP_Socket::setUpShadow().

int gethostname ( char * name,
unsigned int namelen )
 

Referenced by TCP_Socket::TCP_Socket(), UDP_Socket::addToProgram(), and TCP_Socket::addToProgram().

Copyright Contact Us