Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:matejbucek/JDTP.git
Browse files Browse the repository at this point in the history
  • Loading branch information
matejbucek committed Mar 19, 2020
2 parents c55ab6b + 7742c11 commit 40900e6
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions README.md
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.*

0 comments on commit 40900e6

Please sign in to comment.