Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pikkewyn/ltalk

Repository files navigation

ltalk ( university task )

Program ltalk do jednoczesnej rozmowy dowolnej liczby uzytkownikow. Jest to prosta wersja rozmowy typu rozgloszeniowego (ang. broadcast), czyli jak jeden z klientow programu wpisze wiadomosc pojawia sie ona na ekranie u kazdego innego klienta podlaczonego do serwera. Dla odroznienia klientow na poczatku kazdej wiadomosci wypisuje nick.

Compilation: make

Running: run ./ltalk in one terminal and than in two other run telnet like this:

>>> WELCOME <<<< >>>> Please use /nick [nick] to set Your nick >>>> /nick foo thanks for registering >>>> ^[[A[bar 22:29 ]: hej foo >>>> hej bar >>>> whats up? >>>> [bar 22:30 ]: im fine man, and You? >>>> im doing great >>>> im just watching this fantastic movie >>>> You have to check it out >>>> [jan 22:31 ]: hi guys >>>> [jan 22:31 ]: nice to meet you >>>> [jan 22:31 ]: im frist time on this chat >>>> telnet localhost 8888 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Hello Client , I have received your connection. And now I will assign a handler for you >>>> WELCOME <<<< >>>> Please use /nick [nick] to set Your nick >>>> /nick bar thanks for registering >>>> hej foo hej bar >>>> [foo 22:30 ]: whats up? >>>> im fine man, and You? >>>> [foo 22:30 ]: im doing great >>>> [foo 22:30 ]: im just watching this fantastic movie >>>> [foo 22:30 ]: You have to check it out >>>> [jan 22:31 ]: hi guys >>>> [jan 22:31 ]: nice to meet you >>>> [jan 22:31 ]: im frist time on this chat >>>>">telnet localhost 8888
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Hello Client , I have received your connection. And now I will assign a handler for you
>>>> WELCOME <<<<
>>>> Please use /nick [nick] to set Your nick
>>>> /nick foo
thanks for registering
>>>> ^[[A[bar 22:29 ]: hej foo
>>>> hej bar
>>>> whats up?
>>>> [bar 22:30 ]: im fine man, and You?
>>>> im doing great
>>>> im just watching this fantastic movie
>>>> You have to check it out
>>>> [jan 22:31 ]: hi guys
>>>> [jan 22:31 ]: nice to meet you
>>>> [jan 22:31 ]: im frist time on this chat
>>>>

telnet localhost 8888
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Hello Client , I have received your connection. And now I will assign a handler for you
>>>> WELCOME <<<<
>>>> Please use /nick [nick] to set Your nick
>>>> /nick bar
thanks for registering
>>>> hej foo hej bar
>>>> [foo 22:30 ]: whats up?
>>>> im fine man, and You?
>>>> [foo 22:30 ]: im doing great
>>>> [foo 22:30 ]: im just watching this fantastic movie
>>>> [foo 22:30 ]: You have to check it out
>>>> [jan 22:31 ]: hi guys
>>>> [jan 22:31 ]: nice to meet you
>>>> [jan 22:31 ]: im frist time on this chat
>>>>

Code still requires some cleaning up ( like making functions smaller etc ) but i've tested it for memory leaks. Some coverage tests need to be done and a lot functionality can be added.

About

No description, website, or topics provided.

Resources

Readme

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors