Hello World Example - accelio/JXIO GitHub Wiki

A single threaded server and client example code.
The client sends a single message to the server and exits after receiving the response.
Server waits for the next new client connection.

Shell run script: https://github.com/accelio/JXIO/blob/master/examples/runHelloWorld.sh
Source code: https://github.com/accelio/JXIO/tree/master/examples/org/accelio/jxio/helloworld

"Hello World" on server side:

$ examples/runHelloWorld.sh server 56.10.10.13 6000
LD library is: /.autodirect/mtrswgwork/alexr/development/jxio/examples
Compiling JAVA files....
Running Server side test...
HelloServer:44 waiting for JXIO incoming connections
HelloServer:90 [SUCCESS] Got event onSessionNew from 56.10.10.12, URI='rdma://56.10.10.13:6000/'
HelloServer:108 [SUCCESS] Got a message request! Prepare the champagne!
HelloServer:116 msg is: 'Hello Server'
HelloServer:135 [EVENT] Got event SESSION_CLOSED

"Hello World" on client side

$ examples/runHelloWorld.sh client 56.10.10.13 6000
LD library is: /.autodirect/mtrswgwork/alexr/development/jxio/examples
Compiling JAVA files....
Running Client side test...
HelloClient:68 Try to establish a new session to 'rdma://56.10.10.13:6000/'
HelloClient:102 [SUCCESS] Session established! Hurray !
HelloClient:106 [SUCCESS] Got a message! Bring the champagne!
HelloClient:114 msg is: 'Hello to you too, Client'
HelloClient:118 Closing the session...
HelloClient:126 [EVENT] Got event SESSION_CLOSED
HelloClient:57 Client is releasing JXIO resources and exiting