JLR interview question

Question on socket communication C coding questions