mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-08 11:13:55 +00:00
c101092ea7
Patch: Anatol Pomozov git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1039299 13f79535-47bb-0310-9956-ffa450edef68
29 lines
622 B
C
29 lines
622 B
C
#include <assert.h>
|
|
#include <netdb.h>
|
|
|
|
#include "transport/thrift_server_transport.h"
|
|
#include "transport/thrift_server_socket.h"
|
|
|
|
static const char TEST_ADDRESS[] = "localhost";
|
|
static const int TEST_PORT = 64444;
|
|
|
|
static void
|
|
test_thrift_server (const int port)
|
|
{
|
|
ThriftServerSocket *tsocket = g_object_new (THRIFT_TYPE_SERVER_SOCKET,
|
|
"port", TEST_PORT, NULL);
|
|
|
|
g_object_unref (tsocket);
|
|
}
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
g_type_init();
|
|
g_test_init (&argc, &argv, NULL);
|
|
|
|
g_test_add_func ("/testthrift/Server", test_thrift_server);
|
|
|
|
return g_test_run ();
|
|
}
|