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.1 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 | class i4_socket_class
|
---|
10 | {
|
---|
11 | public:
|
---|
12 | int fd;
|
---|
13 | bind
|
---|
14 | connect
|
---|
15 | accept
|
---|
16 | gethostbyname
|
---|
17 | socket( AF_INET, SOCK_STREAM, 0);
|
---|
18 | };
|
---|
19 |
|
---|
20 |
|
---|
21 |
|
---|
22 | /*
|
---|
23 | This class responds to 'search' packets. When other games are looking for
|
---|
24 | a server they should have some way of finding the notifier socket.
|
---|
25 | */
|
---|
26 |
|
---|
27 | class i4_notifier_socket
|
---|
28 | {
|
---|
29 | i4_str *note_string;
|
---|
30 | protected:
|
---|
31 | i4_notifier_socket(int port, const i4_const_str ¬ification_string);
|
---|
32 | public:
|
---|
33 | virtual void set_notification_string(const i4_const_str &str);
|
---|
34 | virtual void poll() = 0;
|
---|
35 | virtual ~i4_notifier_socket();
|
---|
36 | };
|
---|
37 |
|
---|
38 |
|
---|
39 | class i4_finder_socket
|
---|
40 | {
|
---|
41 | protected:
|
---|
42 | i4_finder_socket(int port);
|
---|
43 |
|
---|
44 |
|
---|
45 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.