-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
47 lines (44 loc) · 1.46 KB
/
Copy pathProgram.cs
File metadata and controls
47 lines (44 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using NetMQ;
using NetMQ.Sockets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace server
{
class Program
{
static void Main(string[] args)
{
//ResponseSocket responseSocket = new ResponseSocket("@tcp://*:5555");
//var timer = new NetMQTimer(TimeSpan.FromSeconds(2));
//Console.WriteLine("start the poller");
//using (var req = new RequestSocket(">tcp://127.0.0.1:5555"))
//using (var poller = new NetMQPoller { responseSocket, timer })
//{
// responseSocket.ReceiveReady += (s, a) =>
// {
// //
// bool more;
// string messageIn = a.Socket.ReceiveFrameString(out more);
// Console.WriteLine("messageIn = {0}", messageIn);
// a.Socket.SendFrame("World");
// for (int i = 0; i < 1000000000; i++)
// {
// long b = i * i;
// }
// Console.WriteLine("finish");
// };
// timer.Elapsed += (s, a) =>
// {
// //
// Console.WriteLine("start refresh the panel list");
// };
// poller.Run();
//}
IP_TR asd = new IP_TR();
}
}
}