next up previous contents
Next: Telnet Up: Transport Protocols Previous: Transport Protocols

Transport Interfaces

The application programming interfaces to these protocols also vary. TCP resembles a pipe: at either end you feed in bytes, and at the other end the same bytes come out.

UDP resembles a bucket. You pile your bytes in at one end, pass the bucket, and the other end gets the bucket load of bytes (or not, if the network loses them!).

RDPs are in between. Typically, they provide a bucket style interface, but a sequence of them alternating which way they go.

The most common programming interface to all these protocols is called sockets, or winsock on DOS machines. Some Unix boxes also provide an interface called streams.



next up previous contents
Next: Telnet Up: Transport Protocols Previous: Transport Protocols



Jon Crowcroft
Wed May 10 11:46:29 BST 1995