]> git.deb.at Git - rhonda/impostor.hazel.git/commitdiff
Fixed doc include code
authorJamJar00 <jamster.30@btinternet.com>
Thu, 15 Sep 2016 18:12:17 +0000 (19:12 +0100)
committerJamJar00 <jamster.30@btinternet.com>
Thu, 15 Sep 2016 18:12:17 +0000 (19:12 +0100)
Hazel/DocInclude/TcpClientExample.cs
Hazel/DocInclude/UdpClientExample.cs

index cc2bdc2623424493970f6d6d10bb3b843133b51e..8138f6b93f240fc7db6601e44976060189c066d4 100644 (file)
@@ -7,7 +7,7 @@
             ManualResetEvent e = new ManualResetEvent(false);
 
             //Whenever we receive data print the number of bytes and how it was sent
-            connection.DataReceived += (object sender, DataEventArgs a) =>
+            connection.DataReceived += (object sender, DataReceivedEventArgs a) =>
                 Console.WriteLine("Received {0} bytes via {1}!", a.Bytes.Length, a.SendOption);
 
             //When the end point disconnects from us then release the main thread and exit
index b576f26db488be3df1bd034b71e54fc876e87dad..e77d5c5e540967a75b86a14bc8fc689595365eb6 100644 (file)
@@ -7,7 +7,7 @@
             ManualResetEvent e = new ManualResetEvent(false);
 
             //Whenever we receive data print the number of bytes and how it was sent
-            connection.DataReceived += (object sender, DataEventArgs a) =>
+            connection.DataReceived += (object sender, DataReceivedEventArgs a) =>
                 Console.WriteLine("Received {0} bytes via {1}!", a.Bytes.Length, a.SendOption);
 
             //When the end point disconnects from us then release the main thread and exit