Use nvc-cce-2.coinomi.net server for testing.
[StratumLibrary.git] / StratumTest / Program.cs
index ea64cbd..cdada63 100644 (file)
@@ -4,12 +4,23 @@
 namespace StratumTest\r
 {\r
     using Stratum;\r
+       using Newtonsoft.Json.Linq;\r
+\r
+       class StratumWrapper : Stratum\r
+       {\r
+               public StratumWrapper(string ipAddress, int port) : base(ipAddress, port) {     }\r
+\r
+               public override void NotificationHandler(string NotificationMethod, JArray NotificationData)\r
+               {\r
+                       Console.WriteLine("\nNotification: Method={0}, data={1}", NotificationMethod, NotificationData.ToString());\r
+               }\r
+       }\r
 \r
     class StratumTest\r
     {\r
         static void Main(string[] args)\r
         {\r
-            Stratum s = new Stratum("192.168.1.100", 40001);\r
+                       StratumWrapper s = new StratumWrapper("176.9.65.41", 5034);\r
 \r
             while (true)\r
             {\r