Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 757 Bytes

README.md

File metadata and controls

59 lines (37 loc) · 757 Bytes

Chat Erlang

Simple erlang chat for messages between nodes.

Getting Started

Prerequisites

You need to install erlang.

Enter the name of your machine to the node in client.erl file.

Server = {server_chat, 'server@{MACHINE_NAME}'},

Go to your path project, and start node server

$ erl -sname server

Compile files.

> c(server).
> c(client).

Start server

> server:start().

Open other terminal in your path project and join client.

$ erl -sname client
> C = client:join({NICK_NAME}).

To send message

> C ! {send, "Hello world"}.

Enjoy

Authors

  • Vinícius Duarte Reis

Acknowledgments

  • Teacher Rodrigo Freitas