Next: Lynx Web Browser
Up: No Title
Previous: Summary
Programming for T/TCP is slightly different using socket programming.
As an example, the chain of system calls to implement a TCP client would be
as follows:
- socket() - create a socket
- connect() - connect to the remote host
- write() - write data to the remote host
- shutdown() - close one side of the connection
Whereas with T/TCP the chain of commands would be:
- socket() - create a socket
- sendto() - connect, send data, and close connection
The sendto() function has to be able to use a new flag MSG_EOF, to indicate
to the kernel that it has no more data to send on this connection. This is the
transaction processing coming into effect.
Mark Stacey
Thu Apr 30 12:26:11 IST 1998