#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <time.h>
#include <signal.h>
#include <gtk/gtk.h>
Go to the source code of this file.
Defines | |
| #define | BUFFER 4096 |
Functions | |
| void | close_properly (int signal) |
| to close the signal | |
| int | main (int argc, char *argv[]) |
| Used to create a tcp server. | |
Variables | |
| int | listen_file_descriptor |
Definition in file server.c.
| void close_properly | ( | int | signal | ) |
to close the signal
Definition at line 25 of file server.c.
References listen_file_descriptor.
Referenced by main().
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Used to create a tcp server.
This is an iterative server and hence responds to only clients. Note that it will work only for ipv4 servers.
| argc | number of command line arguments passed to the program including program name itself. | |
| argv | array of command line arguments. |
Definition at line 53 of file server.c.
References BUFFER, close_properly(), and listen_file_descriptor.
1.5.8