luisgabriel / erl-chat-server Goto Github PK
View Code? Open in Web Editor NEWA simple chat server written in Erlang.
A simple chat server written in Erlang.
I started a server on port 8080.chat_server:start(8080)
I then tried to SSH into the server with
ssh 100.115.92.201 -p 8080
but it gives me this error:
=CRASH REPORT==== 9-Apr-2022::18:32:02.710764 ===
crasher:
initial call: tcp_server:accept_loop/1
pid: <0.85.0>
registered_name: []
exception error: no match of right hand side value {"SSH-2.0-OpenSSH_7.9p1 Debian-10+deb10u2\r\n",
[]}
in function chat_server:pre_loop/1 (src/chat_server.erl, line 14)
ancestors: [chat_server,<0.82.0>]
message_queue_len: 0
messages: []
links: [#Port<0.8>]
dictionary: []
trap_exit: false
status: running
heap_size: 376
stack_size: 27
reductions: 968
neighbours:
I hope later you can add SSH support and/or fix this error.
Hi! )
From telnet I connecting to server (port server 2221):
telnet 192.168.1.100 2221
CONNECT:User1
CONNECT:Ok:User1
From other terminal I connecting to server withe nick User2 )))
telnet 192.168.1.100 2221
CONNECT:User2
CONNECT:Ok:User2
If I send SAY:Hello
it's work.
But If i Send PVT:User1:Hi
Message don't sending.
What's bug?
Thx)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.