Home > Software engineering >  Program design of interview questions: how to use the socket within a local area network (LAN) to de
Program design of interview questions: how to use the socket within a local area network (LAN) to de

Time:10-29

Earlier topic main took part in the BAT's interview, the interviewer asked based on MFC socket design a program similar to QQ system, application environment within the local area network (LAN) is a self-built, no more than 100 sets of subsystem, the requirement for "efficient" "reliable" "easy extension", "safe" need to be around the four key words to answer,
Question the answer obviously can't satisfy the interviewer, so post consult bits, this interview problem should be how to answer is to achieve the requirement of the interviewer? To ask if it is special level the answer should be like, please feel free to comment, thank you very much!

CodePudding user response:

Refer to the MSDN own example code,

CodePudding user response:

CodePudding user response:

"Efficient" "reliable" "security" "easy extension"
Efficient relative to TCP, general is to choose the udp protocol
Reliable is based on udp protocol in similar to TCP mechanism, namely reliable udp transmission
Security encryption system, introduced on the basis of this, for example, all user password using quadratic md5 all the text in the process of information transmission encryption
Easy extension is to let you use text instruction mode, like FTP commands, can easily add more after various instruction support

This is my understanding

CodePudding user response:

Wait for master,
  • Related