//Server.cs
public void Connect()
{
sListen.Connect();
}
public void Rec(byte[] n)
{
sListen.Recive(n);
}
public void Send(byte[] n)
{
sListen.Send(n);
}
//Form1
byte[] n = new byte[10];
Server sr = new Server();
sr.Connect();
sr.Rec(n);
sr.Send(n);
//Form2
byte[] n = new byte[10];
Server sr = new Server();
sr.Send(n);
sr.Rec(n);