X-Git-Url: https://git.novaco.in/?p=StratumLibrary.git;a=blobdiff_plain;f=StratumTest%2FProgram.cs;h=cdada6399f189ac504051201552919596e292e33;hp=ea64cbdb1eb12e136a9bcdf210fcd0633c0b105d;hb=38c493a10ac3598740af847c07d919da3f5e41c5;hpb=27ffb176358e7959320a5be4d916a862a55cff37 diff --git a/StratumTest/Program.cs b/StratumTest/Program.cs index ea64cbd..cdada63 100644 --- a/StratumTest/Program.cs +++ b/StratumTest/Program.cs @@ -4,12 +4,23 @@ namespace StratumTest { using Stratum; + using Newtonsoft.Json.Linq; + + class StratumWrapper : Stratum + { + public StratumWrapper(string ipAddress, int port) : base(ipAddress, port) { } + + public override void NotificationHandler(string NotificationMethod, JArray NotificationData) + { + Console.WriteLine("\nNotification: Method={0}, data={1}", NotificationMethod, NotificationData.ToString()); + } + } class StratumTest { static void Main(string[] args) { - Stratum s = new Stratum("192.168.1.100", 40001); + StratumWrapper s = new StratumWrapper("176.9.65.41", 5034); while (true) {