C/C++ Run Chat Client in C++: Easy Setup on Linux/Unix Servers

  • Thread starter Thread starter exequor
  • Start date Start date
  • Tags Tags
    Chat
AI Thread Summary
To run a chat client written in C++ on a Unix/Linux server, it is essential to clarify the chat client's underlying protocol. If the client adheres to an open standard like Jabber, using a corresponding Jabber server is advisable. For custom protocols, a compatible server application must be developed. Key considerations include ensuring the client connects to the correct server port and that no firewall is blocking the necessary ports. The discussion highlights the need for a simple server-client architecture, emphasizing that if the software is functional locally, transitioning to a web host or shell account should be straightforward, provided the necessary configurations are in place.
exequor
Messages
393
Reaction score
0
What is the easiest way to run a chat client that was written in c++? Preferably for a unix/linux server.
 
Technology news on Phys.org
exequor said:
What is the easiest way to run a chat client that was written in c++? Preferably for a unix/linux server.


compile it and run it?
 
exequor said:
What is the easiest way to run a chat client that was written in c++? Preferably for a unix/linux server.

What is the chat client, and what underlying protocol do you want to use?

If it is based on an open standard then by all means use an open standard as your server..

Your question needs more clarity.

If you build a chat client that complys with the Jabber standards then use a Jabber server, however if you write your own protocol for your client, then write the Server app ensuring it complys with this protocol.
 
It is just a simple server that uses winsock, and a client to go with it.
 
You need to think below the application layer
 
If you have the server and the client then what is the problem? Assuming the client connects to the right port on the server and uses an agreed protocol then all you need to do is make sure you don't have a firewall in the way blocking either the incoming port on the server or the outgoing port on the client. Did you write the software yourself or is it someone else's and are you just having difficulties using it?
 
It is a simple application that we [a group] wrote. It is very simple now and we are going to expand on it. Currently it works when someone runs the server on their computer, but we want to run it on a webhost's server or a shell account, sort of like an ird daemon.
 
Back
Top