TCP Sender Receiver
Anonymous User
440

I am new to system design and system programming. I saw this question, it was asked in a company's interview. (TCP Sender Receiver)

  1. Files are being sent over 5 parallel TCP connections from sender to receiver.
  2. Files are splitted into 512 Bytes segments.
  3. Chunks from multiple files can be sent paralley.
  4. Assume no packet loss, no connection break.
  5. The sender receives the segments and merges them to create the file.

Told to write the pseudo-code for the sender.
(I think we can use concept of multithreading for the purpose,but not so sure.)

Comments (0)