sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
network.c File Reference
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdarg.h>
#include <malloc.h>
#include <fcntl.h>
#include <crypt.h>
#include "network.h"

Macros

#define TRUE   (1==1)
 
#define FALSE   (!TRUE)
 
#define SALT_LEN   16
 

Functions

char * getClientIP (void)
 
int sendGreeting (int clientFd)
 
int sendChallenge (int clientFd)
 
int getResponse (int clientFd)
 
int passwordMatch (const char *password)
 
int setupServer (int serverPort)
 
void closeServer (int clientFd)
 

Macro Definition Documentation

#define FALSE   (!TRUE)
#define SALT_LEN   16
#define TRUE   (1==1)

Function Documentation

void closeServer ( int  clientFd)
char* getClientIP ( void  )
int getResponse ( int  clientFd)
int passwordMatch ( const char *  password)
int sendChallenge ( int  clientFd)
int sendGreeting ( int  clientFd)
int setupServer ( int  serverPort)

Variable Documentation

struct sockaddr_in sin
struct sockaddr_in6 sin6