Last change
on this file was
2,
checked in by oldcode, 23 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
864 bytes
|
Line | |
---|
1 | #ifdef __cplusplus |
---|
2 | extern "C" { |
---|
3 | #endif |
---|
4 | |
---|
5 | #include <stdio.h> |
---|
6 | #include <stdlib.h> |
---|
7 | #include "ors_server.h" |
---|
8 | #include "C/server.h" |
---|
9 | #include <aisc_server_proto.h> |
---|
10 | #include <aisc_server_extern.h> |
---|
11 | #include <import_proto.h> |
---|
12 | |
---|
13 | #ifdef __cplusplus |
---|
14 | } |
---|
15 | #endif |
---|
16 | |
---|
17 | extern ORS_main *aisc_main; |
---|
18 | int ors_server_shutdown(void); |
---|
19 | |
---|
20 | #ifdef __cplusplus |
---|
21 | extern "C" { |
---|
22 | #endif |
---|
23 | |
---|
24 | // aisc_callback_func_proto(destroy_ORS_local); /* prototyp */ |
---|
25 | |
---|
26 | void ors_destroy_locs(ORS_local *THIS) { |
---|
27 | destroy_ORS_local(THIS); |
---|
28 | } |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | } |
---|
32 | #endif |
---|
33 | |
---|
34 | int ors_init_socket(ORS_local *THIS) { |
---|
35 | aisc_add_destroy_callback((aisc_callback_func)ors_destroy_locs,(long)THIS); |
---|
36 | return 0; |
---|
37 | } |
---|
38 | |
---|
39 | void ors_destroy_socket(ORS_local *THIS) { |
---|
40 | THIS = THIS; |
---|
41 | #if 0 |
---|
42 | if (aisc_main->ploc_st.cnt <=0) { |
---|
43 | names_server_shutdown(); |
---|
44 | exit(0); |
---|
45 | } |
---|
46 | #endif |
---|
47 | aisc_remove_destroy_callback(); |
---|
48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.