-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
@somdoron is this expected?
Below code throws excetion.
static void Main(string[] args)
{
var s = AsyncSocket.Create(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
s.Bind(IPAddress.Parse("127.0.0.1"), 27000);
var c = AsyncSocket.Create(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
c.Connect(IPAddress.Parse("127.0.0.1"), 27000);
}
Unhandled Exception: System.Net.Sockets.SocketException: An invalid argument was supplied
at AsyncIO.Windows.Socket.Connect(IPEndPoint endPoint) in D:\Repo\AsyncIO\Source\AsyncIO\Windows\Socket.cs:line 440
at AsyncIO.SocketExtensions.Connect(AsyncSocket socket, IPAddress ipAddress, Int32 port) in D:\Repo\AsyncIO\Source\AsyncIO\SocketExtensions.cs:line 19
at udptest.Program.Main(String[] args) in D:\Repo\dxdjglnetmqudp\src\udptest\Program.cs:line 22
Press any key to continue . . .
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels