Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to send data from one application to another Pin
Exceter25-Dec-02 17:34
Exceter25-Dec-02 17:34 
AnswerRe: How to send data from one application to another Pin
chepuri_uk25-Dec-02 20:59
chepuri_uk25-Dec-02 20:59 
AnswerRe: How to send data from one application to another Pin
Pavel Klocek25-Dec-02 22:46
Pavel Klocek25-Dec-02 22:46 
GeneralTop-Level Menu Item Data Pin
comrade25-Dec-02 12:17
comrade25-Dec-02 12:17 
GeneralClient/Server advice Pin
Rickard Andersson2025-Dec-02 11:55
Rickard Andersson2025-Dec-02 11:55 
GeneralRe: Client/Server advice Pin
Todd C. Wilson25-Dec-02 17:38
Todd C. Wilson25-Dec-02 17:38 
GeneralRe: Client/Server advice Pin
Rickard Andersson2025-Dec-02 23:31
Rickard Andersson2025-Dec-02 23:31 
GeneralRe: Client/Server advice Pin
Moak25-Dec-02 19:28
Moak25-Dec-02 19:28 
Rickard Andersson wrote:
I don't really know how to communicate between my server and client. Am I going to use a plain string and parse it?

I prefer plaintext TCP/IP communication vs binary communication, when possible.

A good example of a mixture is the Gnutella protocol: Handshake and file transfar is done in a HTTP alike plaintext protocol. while all other stuff (search requests and answers) are binary... possibly to save bandwith. Generally speaking, text protocols are flexible, easy to debug and good to understand. Binary protocols are better suited when performance matters (you know optimation is your worst enemy).
IRC is an example for a line based plaintext protocol, ICQ is an example for using binary packages. Oh, and another possibility that is available: using XML (and a library that parse data for you).

If you speak about a chat, perhaps imitate IRC protocol and use line based plaintext...
GeneralRe: Client/Server advice Pin
Rickard Andersson2025-Dec-02 23:25
Rickard Andersson2025-Dec-02 23:25 
GeneralIncredible problem with MFC socket Pin
s_k25-Dec-02 11:52
s_k25-Dec-02 11:52 
GeneralRe: Incredible problem with MFC socket Pin
Todd C. Wilson25-Dec-02 17:36
Todd C. Wilson25-Dec-02 17:36 
GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 1:25
s_k26-Dec-02 1:25 
GeneralRe: Incredible problem with MFC socket Pin
Moak25-Dec-02 19:43
Moak25-Dec-02 19:43 
GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 1:30
s_k26-Dec-02 1:30 
GeneralRe: Incredible problem with MFC socket Pin
Moak26-Dec-02 3:10
Moak26-Dec-02 3:10 
GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 3:17
s_k26-Dec-02 3:17 
GeneralRe: Incredible problem with MFC socket Pin
Moak26-Dec-02 3:55
Moak26-Dec-02 3:55 
GeneralRe: Incredible problem with MFC socket Pin
s_k26-Dec-02 4:06
s_k26-Dec-02 4:06 
GeneralRe: Incredible problem with MFC socket Pin
Moak26-Dec-02 7:25
Moak26-Dec-02 7:25 
GeneralMoving DLL projects into VC++ .NET Pin
Bartosz Bien25-Dec-02 11:36
Bartosz Bien25-Dec-02 11:36 
GeneralRe: Moving DLL projects into VC++ .NET Pin
Bartosz Bien25-Dec-02 12:12
Bartosz Bien25-Dec-02 12:12 
GeneralRight aligned Combo box !!! Pin
Hadi Rezaee25-Dec-02 11:15
Hadi Rezaee25-Dec-02 11:15 
GeneralUsing Office xp(2000) Chart Pin
Majid Shahabfar25-Dec-02 10:12
Majid Shahabfar25-Dec-02 10:12 
GeneralUnderstanding PreTranslateMessage() Pin
Moak25-Dec-02 6:13
Moak25-Dec-02 6:13 
GeneralRe: Understanding PreTranslateMessage() Pin
567890123425-Dec-02 19:21
567890123425-Dec-02 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.