Remove comments from OSUE-Team
This commit is contained in:
parent
6f47f3c652
commit
998a3c8c31
12
server.c
12
server.c
@ -6,7 +6,6 @@
|
|||||||
* @brief Server for OSUE exercise 1B `Battleship'.
|
* @brief Server for OSUE exercise 1B `Battleship'.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// IO, C standard library, POSIX API, data types:
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -15,15 +14,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
// Assertions, errors, signals:
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
// Time:
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
// Sockets, TCP, ... :
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
@ -31,11 +27,11 @@
|
|||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
static const char *port = DEFAULT_PORT; // the port to bind to
|
static const char *port = DEFAULT_PORT;
|
||||||
|
|
||||||
static struct addrinfo *ai = NULL; // stores address information
|
static struct addrinfo *ai = NULL;
|
||||||
static int sockfd = -1; // socket file descriptor
|
static int sockfd = -1;
|
||||||
static int connfd = -1; // connection file descriptor
|
static int connfd = -1;
|
||||||
static char* pname;
|
static char* pname;
|
||||||
|
|
||||||
struct Ship {
|
struct Ship {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user