blob: 6020f9cdf6d094e1376e4d6cd97c68a39d658cbf [file] [log] [blame]
Roger Meier213a6642010-10-27 12:30:11 +00001#include <assert.h>
2#include <netdb.h>
3
4#include "transport/thrift_server_transport.h"
5#include "transport/thrift_server_socket.h"
6
7static const char TEST_ADDRESS[] = "localhost";
8static const int TEST_PORT = 64444;
9
10static void thrift_server (const int port);
11
12static void
13thrift_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
21int
22main(void)
23{
24 g_type_init ();
25 thrift_server (TEST_PORT);
26 return 0;
27}
28