sketchbook
|
#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) |
#define FALSE (!TRUE) |
#define SALT_LEN 16 |
#define TRUE (1==1) |
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 | ) |
struct sockaddr_in sin |
struct sockaddr_in6 sin6 |