write tcp example.