GithubHelp home page GithubHelp logo

gbarreiro / text-sockets Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 70 KB

Client-server service for making queries on a file text

License: GNU General Public License v3.0

Java 100.00%
ssl socket-io client-server java

text-sockets's Introduction

Text Sockets

Project for the Computer Networks course in the Telecommunications Engineering degree. It's a client-server system, where the server has a text file, so the client can ask the server for all the lines of that text file which contain the requested substring.

This connection can be done with UDP (one query per call) or establishing a TCP encrypted socket (with SSL), which will allow the client to make several queries.

Running

  • Client: java Client -(udp|tls) server_ip port [client_truststore] [substring]

    • client_truststore only in TLS
    • substring only in UDP
  • Server: java Server port keystore password_keystore textfile

TLS connection

For establishing the TLS encrypted connection, the client must have the certificate used by the server, in order to be able of authenticating it. To do this, you can use the keystores available in this repository: server_keystore.ks as the Server keystore and client_truststore.ks as the Client truststore. The certificate used by the Server is cert_server.cer, included within both keystores.

server_keystore.ks password is unservidor, and client_truststore.ks is uncliente.

text-sockets's People

Contributors

gbarreiro avatar

Stargazers

 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.