Skip to content

servidor tcp de arquivos e chat feito em erlang e cliente feito em python

License

Notifications You must be signed in to change notification settings

Fabiokleis/ftcperl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ftcperl

File Server over tcp written in erlang. simple python client.

Protocol

flux(14)

Server

An OTP application.

Server env options, listening port and process pool size.

[
  {server, [{port, 8123}, {pool, 10}]}
].

Build

$ rebar3 compile

Run

$ rebar shell

Client

$ python client.py

Usage

-define(HELP_MESSAGE, "comande o servidor digitando um dos comandos.

comandos disponiveis: [chat, file, sair, help].
    help: mostra essa mensagem de ajuda.
    sair: termina o processo com o servidor.
    chat: habilita e desabilita o modo chat. %% echo server
    file <nome>: copia um arquivo desejado. %% e.g file client.py
").

Docker

$ docker build . -t server:latest
$ docker run -d --name server -p 8123:8123 server:latest