tcp listener: remove some unneeded references

This commit is contained in:
Hylke Bons 2012-02-05 22:59:06 +01:00
parent 19ba407129
commit d437b1a5a1
2 changed files with 5 additions and 7 deletions

View file

@ -16,10 +16,8 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Timers;
using System.Linq;
namespace SparkleLib {

View file

@ -16,14 +16,9 @@
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Net.NetworkInformation;
using System.Net.Sockets;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace SparkleLib {
@ -122,6 +117,9 @@ namespace SparkleLib {
// We've timed out, let's ping the server to
// see if the connection is still up
} catch (SocketException e) {
Console.WriteLine ("1st catch block");
try {
byte [] ping_bytes =
Encoding.UTF8.GetBytes ("ping");
@ -148,6 +146,8 @@ namespace SparkleLib {
this.socket.ReceiveTimeout = 60 * 1000;
Console.WriteLine ("2nd catch block");
OnDisconnected (e.Message);
break;
}