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_UDP_DATAGRAM 9126
|
|
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 )
|
|
int INET_recvfrom (
|
int socket,
|
|
char * buffer,
|
|
int length,
|
|
int flags,
|
|
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 gethostname (
|
char * name,
|
|
unsigned int namelen )
|
|
|