1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved.
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef CR_NETSERVER_H
|
---|
8 | #define CR_NETSERVER_H
|
---|
9 |
|
---|
10 | #include "cr_net.h"
|
---|
11 |
|
---|
12 | #include <iprt/cdefs.h>
|
---|
13 |
|
---|
14 | #ifdef __cplusplus
|
---|
15 | extern "C" {
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | typedef struct {
|
---|
19 | char *name;
|
---|
20 | int buffer_size;
|
---|
21 | CRConnection *conn;
|
---|
22 | } CRNetServer;
|
---|
23 |
|
---|
24 | DECLEXPORT(void) crNetServerConnect( CRNetServer *ns );
|
---|
25 | DECLEXPORT(void) crNetNewClient( CRConnection *conn, CRNetServer *ns );
|
---|
26 |
|
---|
27 | #ifdef __cplusplus
|
---|
28 | }
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | #endif /* CR_NETSERVER_H */
|
---|