Roger Meier | 213a664 | 2010-10-27 12:30:11 +0000 | [diff] [blame] | 1 | #include <assert.h> |
| 2 | #include <netdb.h> |
| 3 | |
| 4 | #include "transport/thrift_server_transport.h" |
| 5 | #include "transport/thrift_server_socket.h" |
| 6 | |
| 7 | static const char TEST_ADDRESS[] = "localhost"; |
| 8 | static const int TEST_PORT = 64444; |
| 9 | |
| 10 | static void thrift_server (const int port); |
| 11 | |
| 12 | static void |
| 13 | thrift_server (const int port) |
| 14 | { |
| 15 | ThriftServerSocket *tsocket = g_object_new (THRIFT_TYPE_SERVER_SOCKET, |
| 16 | "port", port, NULL); |
| 17 | |
| 18 | g_object_unref (tsocket); |
| 19 | } |
| 20 | |
| 21 | int |
| 22 | main(void) |
| 23 | { |
| 24 | g_type_init (); |
| 25 | thrift_server (TEST_PORT); |
| 26 | return 0; |
| 27 | } |
| 28 | |