개정판 92442e4a
image load 수정
Change-Id: I35e6802b9bde1cd6a7c9787f3a71fb53d6ea10ad
CommonLib/DNSHelper.cs | ||
---|---|---|
43 | 43 |
result = Dns.GetHostEntry(ipaddress); |
44 | 44 |
}); |
45 | 45 |
} |
46 |
catch (System.Net.Sockets.SocketException ex) |
|
47 |
{ |
|
48 |
if (ex.SocketErrorCode == System.Net.Sockets.SocketError.HostNotFound) |
|
49 |
{ |
|
50 |
|
|
51 |
} |
|
52 |
} |
|
46 | 53 |
catch (Exception ex) |
47 | 54 |
{ |
48 | 55 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
... | ... | |
68 | 75 |
} |
69 | 76 |
catch (Exception ex) |
70 | 77 |
{ |
71 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
|
78 |
if (ex.InnerException is System.Net.Sockets.SocketException) |
|
79 |
{ |
|
80 |
System.Diagnostics.Debug.WriteLine((ex.InnerException as System.Net.Sockets.SocketException).SocketErrorCode); |
|
81 |
} |
|
82 |
else |
|
83 |
{ |
|
84 |
|
|
85 |
System.Diagnostics.Debug.WriteLine(ex.ToString()); |
|
86 |
} |
|
72 | 87 |
} |
73 | 88 |
|
74 | 89 |
return result; |
내보내기 Unified diff