Skip to content

Project contains description of Cleint - Server socket

Notifications You must be signed in to change notification settings

leetovetz/ClientServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

ClientServer

Java Client-Server application which transfer objects of clients to server and after that to Postgres DB.

Technologies

  • Java
  • PostrgreSQL

How to run:

Firstly to launch class Main.java in Server part. Than to launch class Main.java in Client part

Database description:

Connection is established through JDBC. Postgre database initialized with some sample user

The model of entity in DB:

ID NAME BILL
1 Mike 15

Usage example:

Interaction between server and client is conducted through the console:

Server side:

-------INFO-------
Server is deployed.

-------INFO-------
Connection with DataBase is established.

-------INFO-------
Waiting for client connection...

-------INFO-------
Client committed connection

Client side:

Insert ID:
1
Insert NAME:
Mike
Insert BILL:
15

Server side:

Got object: |Id - 1|  |Name - Mike|  |Bill - 15|

Client side:

-------INFO from Server-------
Server got instance

About

Project contains description of Cleint - Server socket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages