aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/3Di/LoadBalancer/TcpClient.cs
diff options
context:
space:
mode:
authorJohan Berntsson2008-03-11 04:40:39 +0000
committerJohan Berntsson2008-03-11 04:40:39 +0000
commitf0bfb879798e87296e13063203d5b18a1aa1097f (patch)
tree675b3442cf477d8ed242cb23c97bd610e98d0492 /ThirdParty/3Di/LoadBalancer/TcpClient.cs
parentThe plugin loader can now handle plugin dependencies without hardcoding (diff)
downloadopensim-SC_OLD-f0bfb879798e87296e13063203d5b18a1aa1097f.zip
opensim-SC_OLD-f0bfb879798e87296e13063203d5b18a1aa1097f.tar.gz
opensim-SC_OLD-f0bfb879798e87296e13063203d5b18a1aa1097f.tar.bz2
opensim-SC_OLD-f0bfb879798e87296e13063203d5b18a1aa1097f.tar.xz
Eliminated several compiler warning messages
Diffstat (limited to 'ThirdParty/3Di/LoadBalancer/TcpClient.cs')
-rw-r--r--ThirdParty/3Di/LoadBalancer/TcpClient.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ThirdParty/3Di/LoadBalancer/TcpClient.cs b/ThirdParty/3Di/LoadBalancer/TcpClient.cs
index 2e4cdc7..ab1f692 100644
--- a/ThirdParty/3Di/LoadBalancer/TcpClient.cs
+++ b/ThirdParty/3Di/LoadBalancer/TcpClient.cs
@@ -37,8 +37,6 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer {
37 public class AsynchronousClient { 37 public class AsynchronousClient {
38 private static ManualResetEvent connectDone = new ManualResetEvent(false); 38 private static ManualResetEvent connectDone = new ManualResetEvent(false);
39 private static ManualResetEvent sendDone = new ManualResetEvent(false); 39 private static ManualResetEvent sendDone = new ManualResetEvent(false);
40 private static ManualResetEvent receiveDone = new ManualResetEvent(false);
41 private static String response = String.Empty;
42 40
43 public static Socket StartClient(string hostname, int port) { 41 public static Socket StartClient(string hostname, int port) {
44 try { 42 try {
@@ -114,7 +112,10 @@ namespace OpenSim.ApplicationPlugins.LoadBalancer {
114 try { 112 try {
115 Socket client = (Socket) ar.AsyncState; 113 Socket client = (Socket) ar.AsyncState;
116 int bytesSent = client.EndSend(ar); 114 int bytesSent = client.EndSend(ar);
117 //Console.WriteLine("Sent {0} bytes to server.", bytesSent); 115 if(bytesSent > 0)
116 {
117 //Console.WriteLine("Sent {0} bytes to server.", bytesSent);
118 }
118 sendDone.Set(); 119 sendDone.Set();
119 } catch (Exception e) { 120 } catch (Exception e) {
120 Console.WriteLine(e.ToString()); 121 Console.WriteLine(e.ToString());