2017-06-16 21:00:01 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
2017-08-28 21:15:10 +00:00
|
|
|
|
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 {
|
2017-08-28 21:15:10 +00:00
|
|
|
|
private static UdpClient Sock;
|
|
|
|
|
private static bool IsOpen;
|
2017-06-16 21:00:01 +00:00
|
|
|
|
|
2017-08-28 21:15:10 +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
|
|
|
|
}
|
|
|
|
|
}
|