Академический Документы
Профессиональный Документы
Культура Документы
Step 1 (Server): Choose any country and set time of server-designated computer accordingly. Then
programme it to send a message saying hello. For example, if you chose London, the message sent to
client must be “Hello from London. Time here is 2/29/2016 9:48:48 AM”.
Step 2 (Server): Print IP address of every client that connects to your server. After sending him message,
disconnect that client.
Step 3 (Client): Create your first client for connecting to a date/time server launched by your friend.
using System;
using System.IO;
using System.Net.Sockets;
networkStream.Close( );
}}