https://github.com/brthor/chatpoly
Simple Erlang network chat server and client.
https://github.com/brthor/chatpoly
Last synced: about 1 year ago
JSON representation
Simple Erlang network chat server and client.
- Host: GitHub
- URL: https://github.com/brthor/chatpoly
- Owner: brthor
- License: gpl-2.0
- Created: 2015-02-11T20:03:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T17:50:49.000Z (over 11 years ago)
- Last Synced: 2025-02-17T10:19:50.201Z (over 1 year ago)
- Language: Erlang
- Homepage:
- Size: 609 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chatpoly
Usage is rudimentary right now, it requires use of multiple erlang shells.
Open two terminals, one for client, another for the server. Change the working directory of both to the root directory of chatpoly.
Set up the Server:
cd ./server
erl
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Eshell V6.2 (abort with ^G)
1> c(server).
server.erl:77: Warning: variable 'Username' is unused
{ok,server}
2> server:start().
The Server is now Accepting Users.
Now set up a Client, in the client terminal:
cd ./client/erlang
erl
Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Eshell V6.2 (abort with ^G)
1> c(client).
{ok,client}
2> client:start().
username:
Type in a username and you are ready to go!
username: Bryan
>hey there!
Bryan: hey there!
>