30 lines
564 B
C#
30 lines
564 B
C#
|
using System;
|
|||
|
using System.Net;
|
|||
|
namespace TYTD
|
|||
|
{
|
|||
|
public class Broadcast
|
|||
|
{
|
|||
|
public Broadcast(ushort port,string name)
|
|||
|
{
|
|||
|
this.port = port;
|
|||
|
this.name = name;
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
public string name { get; set; }
|
|||
|
|
|||
|
public ushort port { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public class BroadcastSettings
|
|||
|
{
|
|||
|
public BroadcastSettings()
|
|||
|
{
|
|||
|
name = Dns.GetHostName();
|
|||
|
broadcast = true;
|
|||
|
}
|
|||
|
public bool broadcast { get; set; }
|
|||
|
public string name { get; set; }
|
|||
|
}
|
|||
|
}
|