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

  • Context: C/C++ 
  • Thread starter Thread starter exequor
  • Start date Start date
  • Tags Tags
    Chat
Click For Summary

Discussion Overview

The discussion revolves around the easiest methods to run a chat client written in C++ on Unix/Linux servers. Participants explore various aspects including setup, underlying protocols, and potential issues related to server-client communication.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • Some participants inquire about the specific chat client and the underlying protocol it uses, suggesting that clarity is needed for a more tailored response.
  • One participant mentions that if the chat client complies with open standards like Jabber, it would be advisable to use a corresponding server that supports those standards.
  • Another participant emphasizes the importance of ensuring that the client connects to the correct port on the server and that no firewalls are obstructing the connection.
  • A participant notes that the chat application is a simple server-client setup using Winsock, indicating a desire to expand its functionality.
  • There is a suggestion to consider the application layer and the implications of the chosen protocol on the server-client interaction.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the setup process and the specifics of the chat client. There is no consensus on the best approach, and multiple viewpoints regarding the necessary steps and considerations remain present.

Contextual Notes

Some assumptions about the chat client’s functionality and the server environment are not fully articulated, which may affect the clarity of the discussion. Additionally, the discussion does not resolve the technical challenges faced by the participants.

Who May Find This Useful

Individuals interested in running C++ applications on Unix/Linux servers, particularly those focused on chat applications and network protocols.

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.
 

Similar threads

  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 39 ·
2
Replies
39
Views
8K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
4
Views
3K
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K