Giter Site home page Giter Site logo

progettoreti's Introduction

Prerequisiti

Il progetto è stato compilato e testato sia su Windows che su Unix, in entrambi i casi era installata un JDK versione 1.8.0_321 (Java 8). Tutti i comandi seguenti devono essere eseguiti dalla directory principale del progetto.

Attenzione: fare copia incolla sul terminale di comandi su più righe potrebbe portare a errori.

Compilazione

Il risultato della compilazione saranno dei file .class contenuti nella directory bin

javac -d bin -cp .\lib\* .\src\com\salvo\winsome\*.java .\src\com\salvo\winsome\client\*.java .\src\com\salvo\winsome\server\*.java 

Creazione archivio jar

La directory principale contiene gia' i file Server.jar e Client.jar ma nel caso si volessero creare nuovamente a seguito di modifiche al codice e' possibile lanciare i comandi:

cd bin  # vanno creati dalla directory bin

jar cvfm ../Server.jar ../META-INF/smanifest.mf com/salvo/winsome/*.class com/salvo/winsome/server/*.class

jar cvfm ../Client.jar ../META-INF/cmanifest.mf com/salvo/winsome/*.class com/salvo/winsome/client/*.class

cd ..

Esecuzione

Comandi per l'esecuzione del server e del client. In entrambi i casi possono essere terminati in maniera corretta con il comando 'stop'.

Server

java -cp "lib\*;bin" com.salvo.winsome.server.MainServer .\serverconfig.txt

oppure

java -jar Server.jar .\serverconfig.txt

Oltre all'argomento config_path e' possibile passare il parametro n_workers per personalizzare il numero thread del pool delle richieste

Client

java -cp ".\lib\*;.\bin" com.salvo.winsome.client.MainClient .\clientconfig.txt  

oppure

java -jar Client.jar .\clientconfig.txt  

progettoreti's People

Contributors

salvogs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.