I got a trainee in the company I work for. We are currently working on a JS interface that communicates through websocket with a C/Lang server. My trainee asked me a very good question this morning.
I quote :
"I understand the system of sending and receiving messages, but how the computer actually receives and forwards the message to the running code".
I tried to explain how, but I failed as I don't know how to softly introduce port interactions.
The problem is that I feel that the trainee doesn't understand. I know that these kind of questions can get stuck into the head of a programmer and make him/her more hesitant in front of code and I don't want that for my trainee.
Can someone with good explanation skills help me make a simple, yet complete, answer to this question?
Any help would be much appreciated.