-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git@github.com:matejbucek/JDTP.git
- Loading branch information
Showing
1 changed file
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,35 @@ | ||
# JDTP | ||
Java library which can be really helpfull for creating Server and Client application. | ||
# JDTP 🖥 | ||
Java library which can be really helpful for creating Server and Client application. | ||
|
||
Look to wiki for more info. | ||
## What can I use this library for? | ||
|
||
You can create Server for example for your app and then create Client, which easily connects to your Server. | ||
You can send String, Bytes, or any Object you create trought this connection. | ||
|
||
## How does it work? | ||
|
||
Server starts and listen on given port. When client first connect, it immediately sends Open Frame. When this Open Frame arrives to the Server, it takes incoming hash, edits the hash and then sends it back to the Client. If this matches with Clients edited hash, handshake was successful. | ||
|
||
After this you can sand any Object you want throught this connection. | ||
|
||
## First steps | ||
|
||
### Server | ||
|
||
1. Create a Server. | ||
|
||
2. Create ServerEndPoints and add them to the Server. | ||
|
||
3. Then you can start Server and all should be working. | ||
|
||
### Client | ||
|
||
1. Create a Client. | ||
|
||
2. Create ClientEndPoint and add that EndPoint into your Client. | ||
|
||
3. Connect. | ||
|
||
*I will add link to examples as soon as passible.* | ||
|
||
*Look to wiki for more info.* |