Skip to content

yongkun/thrift-reuse-conn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thrift-reuse-conn

A simple example on how to reuse the thrift connection to transmit data bi-directionally, inspired by http://joelpm.com/2009/04/03/thrift-bidirectional-async-rpc.html

Thrift is a cross-language RPC framework. http://thrift.apache.org

In this example, Client connect to server and send data, Server will send acknowledgement data via the same connection.

How to:

  1. Download the source;
  2. type 'ant', you need to have thrift installed;

Start Server:

./JavaServer.sh

Open another terminal and start Client:

./JavaClient.sh

About

A simple example on how to reuse the thrift connection to transmit data bi-directionally.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published