Skip to content

Commit 699f459

Browse files
committed
Modified to reflect change in new networkEvent method added to
Events class.
1 parent 4a4b0ce commit 699f459

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

jetclient/README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
This is a client project for [jetserver](https://github.com/menacher/java-game-server/tree/master/jetserver) library. An example main class is provided in src/main/test folder.
2-
3-
About the Client
4-
================
5-
Execute org.menacheri.TestClass from command line or eclipse and it will connect to remote jetserver and start receiving events. Assumption is that TestClass using accurate hostname and port number.
6-
Execution
7-
---------
8-
Pointers on main classes, classpaths and command line flags.
9-
10-
**To start the client **
11-
jetclient can be executed from console using below command.
12-
java -cp ./jetclient-0.1.jar;./netty-3.3.1.Final.jar org.menacheri.TestClass
13-
14-
Usage as game client
15-
====================
16-
The general usage steps could be as outlined below.
17-
1. Add jetclient-0.1.jar and netty-3.3.1.Final.jar to your project class path.
18-
2. Create LoginBuilder, session and SessionEventHandler as shown in TestClass. example-games project has a ZombieJetClient which shows a better example.
19-
3. Use the SessionEventHandler to accept events from remote server as well as to write back events to the server.
20-
4. To write back to the remote jetserver create a tcp/udp event using the factory method IEvent event = Events.clientOutUDP(messageBuffer); or Events.clientOutTCP(messageBuffer);
21-
5. Now call session.onEvent(event); and this event will be transmitted to the remote jetserver.
22-
23-
Jar Dependencies
24-
----------------
1+
This is a client project for [jetserver](https://github.com/menacher/java-game-server/tree/master/jetserver) library. An example main class is provided in src/main/test folder.
2+
3+
About the Client
4+
================
5+
Execute org.menacheri.TestClass from command line or eclipse and it will connect to remote jetserver and start receiving events. Assumption is that TestClass using accurate hostname and port number.
6+
Execution
7+
---------
8+
Pointers on main classes, classpaths and command line flags.
9+
10+
**To start the client **
11+
jetclient can be executed from console using below command.
12+
java -cp ./jetclient-0.1.jar;./netty-3.3.1.Final.jar org.menacheri.TestClass
13+
14+
Usage as game client
15+
====================
16+
The general usage steps could be as outlined below.
17+
1. Add jetclient-0.1.jar and netty-3.3.1.Final.jar to your project class path.
18+
2. Create LoginBuilder, session and SessionEventHandler as shown in TestClass. example-games project has a ZombieJetClient which shows a better example.
19+
3. Use the SessionEventHandler to accept events from remote server as well as to write back events to the server.
20+
4. To write back to the remote jetserver create a tcp/udp network event using the factory method IEvent event = Events.networkEvent(messageBuffer); or Events.networkEvent(messageBuffer,DeliveryGuaranty.Fast);
21+
5. Now call session.onEvent(event); and this event will be transmitted to the remote jetserver.
22+
23+
Jar Dependencies
24+
----------------
2525
netty-3.3.1.Final.jar

0 commit comments

Comments
 (0)