-
You're basically right, but there are some minor problems.
1 It's not about writing a separate communication program (i.e., the winsockets program you are talking about), but about implementing that functionality in this program.
2 The port number is specified by you at the time of programming, not obtained, and you must start by thinking about which port to use for communication (e.g. port 6666).
Network transmissions are generally text, but not text files, text is just "a sentence" as you say
-
This needs to be similar to your major, and even though I'm a computer science student and I'm a junior, I still can't read some of what you're saying.
-
You need to define the communication protocol, that is, the rules for transmitting the data content when the programs on both ends of your network communicate.
For example: 1 byte of command**, 1 byte of command parameters, 2 bytes of the content of the first parameter, 2 bytes of the content of the second parameter, ......
When sending, the command for e.g. draw a line is 0x01 the line segment from xa ya to xb yb.
The format of the sending is 01 04 xa ya xb yb
When you accept it, you know that it is a straight line command through 01, and you get 04, you know that it is 4 parameters, and you get the parameters separately, where the points are represented by 2 parameters.
You'll want to make the rules for this protocol and code all the commands.
The port you said is a good IP or something, the port is set by you, what port you use is specified by you, and the other party's IP is also specified when you configure the program.
-
The word "rookie" means "computer beginner".
This is from the Hokkien dialect of Taiwan.
Rookie = rookie boy (Taiwanese).
> is also a pronoun for a raw hand who is not familiar with the operation of something!!
A bird that has just learned to fly will stumble!
It will even fall to the ground, and people used to call this kind of bird a rookie!
By extension, people are not familiar with some business operations!!
Or people who have just entered certain circles will be called rookies!!
Computer beginners can of course also be called rookies).
The word began to appear and became popular because it came from the army
When he was in the army, the seniors in the army would privately jokingly call themselves "them".""Old birds""However, because the private or non-commissioned officer who has just left the army is not fully familiar with the work and training process of the unit, he often has a mallet or mishears the password and behaves differently from other brothers, and these new brothers are called these new brothers""Rookie""or""Heavenly Soldiers""。
Narrow interpretation:
Old Bird = Pawn who dismounted earlier, may speak very locomotive pawn.
Rookie = A soldier who has just arrived in the army and still can't figure out where the unit is.
Broad Explanation:
Old Bird = A senior brother who has served in the unit for a period of time, knows a lot of situations, and will personally teach new recruits, and can be a role model for his own physical skills and expertise, and has a little weight in speaking.
Rookie = has just left the society and entered the army, has not yet adapted to the regular and compact rhythm of life in the army, will be on the wrong shift when assembling, occasionally miss his mother, and will steal tears when he sleeps at night.
Qi Pure Reading Skills: Shengtai Chi, Turning Three Qings, Chong Yin and Yang, Shattering the Stars Four Aura, Liuhe Exclusive Luck, plus a Four Elephants Reincarnation Single Point, Seven Stars Gongrui Fixing. >>>More