Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2003-10-14 14:56:57 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2003-10-14 14:56:57 +0400
commit9d82d59bfd1447dd2ead0ac5551e8efd4efff3ed (patch)
tree76163b74c738605d62192e79588e7aa84fa175d3 /mcs/class/System/System.Net.Sockets
parentd14b4dbff7bb7f0d85e2019f4c525beece397c2e (diff)
2003-10-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* System.dll.sources: added VCodeCompiler.cs by Jochen Wezel <jwezel@compumaster.de>. * Microsoft.VisualBasic/VBCodeCompiler.cs: New. * Microsoft.VisualBasic/VBCodeGenerator.cs: * Microsoft.VisualBasic/VBCodeProvider.cs: modified others to use the new CodeCompiler. * System.Net.Sockets/UdpClient.cs: removed Consoles. svn path=/trunk/mcs/; revision=19033
Diffstat (limited to 'mcs/class/System/System.Net.Sockets')
-rw-r--r--mcs/class/System/System.Net.Sockets/UdpClient.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/mcs/class/System/System.Net.Sockets/UdpClient.cs b/mcs/class/System/System.Net.Sockets/UdpClient.cs
index 2a3aed47d98..5b8c2cf79ed 100644
--- a/mcs/class/System/System.Net.Sockets/UdpClient.cs
+++ b/mcs/class/System/System.Net.Sockets/UdpClient.cs
@@ -117,15 +117,10 @@ namespace System.Net.Sockets
IPAddress[] addresses = Dns.Resolve (hostname).AddressList;
for(int i=0; i<addresses.Length; i++) {
try {
- Console.WriteLine("Trying: {0}, Family: {1}", addresses[i], addresses[i].AddressFamily);
-
this.family = addresses[i].AddressFamily;
Connect (new IPEndPoint (addresses[i], port));
-
- Console.WriteLine("Connected: {0}, Family: {1}", addresses[i], family);
break;
- }
- catch(Exception e) {
+ } catch(Exception e) {
if(i == addresses.Length - 1){
if(socket != null) {
socket.Close();
@@ -137,7 +132,6 @@ namespace System.Net.Sockets
}
}
}
-
}
#endregion
#region Multicast methods