diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/src/examples/ecore_con_lookup_example.c | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/examples/ecore_con_lookup_example.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/libraries/ecore/src/examples/ecore_con_lookup_example.c b/libraries/ecore/src/examples/ecore_con_lookup_example.c deleted file mode 100644 index 3a3d024..0000000 --- a/libraries/ecore/src/examples/ecore_con_lookup_example.c +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | #include <stdio.h> | ||
2 | #include <Ecore.h> | ||
3 | #include <Ecore_Con.h> | ||
4 | |||
5 | static void | ||
6 | _lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data) | ||
7 | { | ||
8 | printf("canonname = %s\n", canonname); | ||
9 | printf("ip = %s\n", ip); | ||
10 | printf("addr = %p\n", addr); | ||
11 | printf("addrlen = %d\n", addrlen); | ||
12 | } | ||
13 | |||
14 | int main(int argc, const char *argv[]) | ||
15 | { | ||
16 | if (argc < 2) | ||
17 | { | ||
18 | printf("need one parameter: <address>\n"); | ||
19 | return -1; | ||
20 | } | ||
21 | |||
22 | ecore_init(); | ||
23 | ecore_con_init(); | ||
24 | |||
25 | if (!ecore_con_lookup(argv[1], _lookup_done_cb, NULL)) | ||
26 | { | ||
27 | printf("error when trying to start lookup for %s\n", argv[1]); | ||
28 | goto end; | ||
29 | } | ||
30 | |||
31 | ecore_main_loop_begin(); | ||
32 | |||
33 | end: | ||
34 | ecore_con_shutdown(); | ||
35 | ecore_shutdown(); | ||
36 | |||
37 | return 0; | ||
38 | } | ||