Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use it? Read here. #3

Open
iM4x1 opened this issue Oct 31, 2023 · 5 comments
Open

How to use it? Read here. #3

iM4x1 opened this issue Oct 31, 2023 · 5 comments

Comments

@iM4x1
Copy link

iM4x1 commented Oct 31, 2023

Hi, How do I get it to run? need easy tutorial please.

@yzcyayaya
Copy link

linux system case:
server:

gcc smallchat.c -o smallchat && ./smallchat

new terminal
client:

nc 127.0.0.1 7711
/nick youname 

@ArjixWasTaken
Copy link

Furthermore, a Makefile is at the root of the repo, usually all build/run instructions are there.

In this specific case running make all or make smallchat would build it, you can then run the produced executable like ./smallchat.
To do that ofc you would need make to be installed.

yzcyayaya's answer is already more than enough, but you really should know about Makefiles because they are pretty common.

@antirez antirez changed the title Ejecucion How to use it? Read here. Nov 10, 2023
@JanYork
Copy link

JanYork commented Nov 16, 2023

There is a Makefile script file, run "all" in the file, then open a terminal and run "smallchat-server", then open another terminal and run "./smallchat-client ", the port is in "smallchat -server" code can be modified, and then Use /nick to set your nick in the client

@windhxs
Copy link

windhxs commented Nov 21, 2023

you can view content of Makefile in the root path, build target "all" or separately "smallchat-server" and "smallchat-client". You should start server first and select a port, and run multiple clients and see what's happening.

@AsadYuen
Copy link

Can it enable two computers to remotely connect and chat(the server opens on one of the computers)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants