sockscape/server/Socks/MasterUdpClient.cs

24 lines
525 B
C#
Raw Normal View History

2017-06-16 21:00:01 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
2017-06-16 21:00:01 +00:00
using System.Text;
using System.Threading.Tasks;
2017-07-22 19:27:41 +00:00
namespace SockScape.Socks {
2017-06-16 21:00:01 +00:00
class MasterUdpClient {
private static UdpClient Sock;
private static bool IsOpen;
2017-06-16 21:00:01 +00:00
public static void Initialize() {
if(IsOpen)
return;
short port = (short) Configuration.General["Master Port"];
Sock = new UdpClient(port);
IsOpen = true;
}
2017-06-16 21:00:01 +00:00
}
}