[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #12168] Bug in pnet
From: |
Kirill Kononenko |
Subject: |
[Pnet-developers] [bugs #12168] Bug in pnet |
Date: |
Sun, 27 Feb 2005 18:41:11 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12168>
Summary: Bug in pnet
Project: DotGNU Portable.NET
Submitted by: krokas
Submitted on: Sun 02/27/05 at 18:41
Category: None
Severity: 5 - Average
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
The following code:
IPAddress ipAddress =
Dns.Resolve(Dns.GetHostName()).AddressList[0];
Console.Write(" Current ip address is " + ipAddress + "\n");
IPEndPoint ipEndpoint =
new IPEndPoint(ipAddress, 58963);
Socket listenSocket =
new Socket(AddressFamily.InterNetwork,
SocketType.Stream,
ProtocolType.Tcp);
listenSocket.Bind(ipEndpoint);
listenSocket.Listen(1);
Report in GNU/Linux the following:
:~$ ilrun a.out
Uncaught exception: System.ArgumentNullException: Argument cannot be null
Parameter name: hostname
at System.Net.Dns.GetHostByName(String) in ./Net/Dns.cs:229
at System.Net.Dns.Resolve(String) in ./Net/Dns.cs:252
at test.Main(String[])
On Windows XP, 98 everything is alright.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 02/27/05 at 18:41 Name: server.cs Size: 5.2KB By: krokas
<http://savannah.gnu.org/bugs/download.php?item_id=12168&item_file_id=2245>
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12168>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [bugs #12168] Bug in pnet,
Kirill Kononenko <=