source: abuse/trunk/src/include/nfserver.hpp @ 39

Last change on this file since 39 was 39, checked in by Sam Hocevar, 11 years ago
  • Fix almost 2,000 warnings by using proper "const" keywords where needed.
File size: 1.3 KB
Line 
1#ifndef __NFSERVER_HPP_
2#define __NFSERVER_HPP_
3
4#include "specs.hpp"
5#include "system.h"
6#include "netface.hpp"
7#include "sock.hpp"
8
9int net_init(int argc, char **argv);
10void net_uninit();
11void service_net_request();
12void wait_min_players();
13void server_check();
14void remove_client(int client_number);
15
16int net_start();
17bFILE *open_nfs_file(char const *filename, char const *mode);
18
19int net_init(int argc, char **argv);
20int NF_open_file(char const *filename, char const *mode);
21long NF_close(int fd);
22long NF_read(int fd, void *buf, long size);
23long NF_filelength(int fd);
24long NF_tell(int fd);
25long NF_seek(int fd, long offset);
26int NF_set_file_server(net_address *addr);
27
28int request_server_entry();
29int server_entry_continue();
30void net_reload();
31void read_new_views();
32int set_file_server(char const *name);
33int set_file_server(net_address *addr);
34
35int join_remote_game(char *name);
36int become_server(char *name);
37int get_remote_lsf(net_address *addr, char *filename);   // filename should be 256 bytes
38
39
40void send_local_request();                          // sends from *base
41int get_inputs_from_server(unsigned char *buf);     // return bytes read into buf (will be less than PACKET_MAX_SIZE
42
43
44int client_number();
45extern net_address *net_server;
46extern base_memory_struct *base;   // points to shm_addr
47
48#endif
Note: See TracBrowser for help on using the repository browser.