Last change
on this file since 608 was
80,
checked in by Sam Hocevar, 15 years ago
|
- Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.
|
File size:
1.2 KB
|
Line | |
---|
1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #ifndef I4_NET_FIND_HH
|
---|
10 | #define I4_NET_FIND_HH
|
---|
11 |
|
---|
12 | #include "string/string.hh"
|
---|
13 |
|
---|
14 | class i4_net_address;
|
---|
15 |
|
---|
16 | /*
|
---|
17 | This class responds to 'search' packets. When other games are looking for
|
---|
18 | a server they should have some way of finding the notifier socket.
|
---|
19 | */
|
---|
20 |
|
---|
21 | class i4_notifier_socket
|
---|
22 | {
|
---|
23 | public:
|
---|
24 | virtual int poll() = 0; // returns # of clients notified (this number may be inaccurate)
|
---|
25 |
|
---|
26 | virtual ~i4_notifier_socket() { ; }
|
---|
27 | };
|
---|
28 |
|
---|
29 |
|
---|
30 | class i4_finder_socket
|
---|
31 | {
|
---|
32 | public:
|
---|
33 | struct server
|
---|
34 | {
|
---|
35 | i4_str *notification_string;
|
---|
36 | i4_net_address *addr;
|
---|
37 | };
|
---|
38 |
|
---|
39 |
|
---|
40 | virtual i4_bool poll() = 0; // returns true if list changed
|
---|
41 | virtual int total_servers() = 0;
|
---|
42 | virtual void get_server(int num, server &s) = 0;
|
---|
43 |
|
---|
44 | virtual ~i4_finder_socket() { ; }
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.