static void Main(string[] args) { var ip = IpHelper.GetLocalIp(); TcpHelper.StartServer(ip, 7777); TcpHelper.Listen(); }
private void ListenForFile() { TcpHelper tcp = new TcpHelper(FILE_TCP_PORT); tcp.ReceiveEvent += new Func <Socket, IPEndPoint, bool>(tcp_ReceiveEvent); tcp.Listen(); }
public void StartServer() { tcp.Listen(); SendHeartBeat(); ProcessUserInput(); }
public static void Main(string[] args) { IPAddress IP; int port; int year; string lang; var valid = ValidateArgs(args, out port, out IP, out year, out lang); if (!valid) { ConsoleWriter.Warning("Invalid args, loading default!"); lang = "en"; year = 18; IP = IPAddress.Parse("127.0.0.1"); port = 5678; } TcpHelper.StartServer(IP, port); TcpHelper.Listen(); // Start listening. }
public static void Main(string[] args) { TcpHelper.StartServer(SERVER_PORT); TcpHelper.Listen(); }