File: server.h

package info (click to toggle)
cmus 2.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,440 kB
  • ctags: 3,053
  • sloc: ansic: 25,337; sh: 1,111; makefile: 181; python: 26
file content (23 lines) | stat: -rw-r--r-- 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 
 * Copyright Timo Hirvonen
 */

#ifndef _SERVER_H
#define _SERVER_H

#include "list.h"

struct client {
	struct list_head node;
	int fd;
};

extern int server_socket;
extern struct list_head client_head;

void server_init(char *address);
void server_exit(void);
void server_accept(void);
void server_serve(struct client *client);

#endif