create an app of a drugstore on java (netbeans 14 project) with non-bloqueant sockets
Project details
create an app of a drugstore on java (netbeans 14 project) with non-bloqueant sockets
must run in the port 9999
has to be enabled SO_REUSEADDR
has to be enabled SO_KEEPALIVE
has to be desabled SO_TIMEOUT
has to be enabled and set in 5 seconds SO_REUSEADDR
has to be enabled TCP_NODELAY
Once the server is started must create and send to the client a .txt file like this
ID Name_product Concentration price Laboratory Availability
001 Aspirin 100mg 50.0 Bayer 100
the client should be able to search and article to know the price or buy the proyect (just click on buy and ad 50 usd to the budget and subtract 1 of availability)
avaliability of the product must be updated every buy it has
in case 1 or 2 clients want to buy the same product the server can not sell more product than are available
Every time you buy a product, the server have to send a ticket in .txt to the client to show what does it buy, how much was it and the date of it
Optional
the system can count how many articles and how much money does it sell during the day
Graphic interphas is optional too
Awarded to:

Zsolt N.
(5.0)
Awarded to:

Zsolt N.
(5.0)
Project details
must run in the port 9999
has to be enabled SO_REUSEADDR
has to be enabled SO_KEEPALIVE
has to be desabled SO_TIMEOUT
has to be enabled and set in 5 seconds SO_REUSEADDR
has to be enabled TCP_NODELAY
Once the server is started must create and send to the client a .txt file like this
ID Name_product Concentration price Laboratory Availability
001 Aspirin 100mg 50.0 Bayer 100
the client should be able to search and article to know the price or buy the proyect (just click on buy and ad 50 usd to the budget and subtract 1 of availability)
avaliability of the product must be updated every buy it has
in case 1 or 2 clients want to buy the same product the server can not sell more product than are available
Every time you buy a product, the server have to send a ticket in .txt to the client to show what does it buy, how much was it and the date of it
Optional
the system can count how many articles and how much money does it sell during the day
Graphic interphas is optional too