Skip to content

Commit

Permalink
Fix socket.Connect issue with dotnet core on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
somdoron committed Jul 18, 2016
1 parent b40f816 commit 1717419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/NetMQ.Tests/NetMQPollerTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -754,7 +755,7 @@ public void NativeSocket()
{
int port = streamServer.BindRandomPort("tcp://*");

socket.Connect("127.0.0.1", port);
socket.Connect(new IPEndPoint(IPAddress.Parse("127.0.0.1"), port));

var buffer = new byte[] { 1 };
socket.Send(buffer);
Expand Down
2 changes: 1 addition & 1 deletion src/NetMQ.Tests/SocketTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void RawSocket()
router.Options.RouterRawSocket = true;
var port = router.BindRandomPort("tcp://127.0.0.1");

clientSocket.Connect("127.0.0.1", port);
clientSocket.Connect(new IPEndPoint(IPAddress.Parse("127.0.0.1"), port));
clientSocket.NoDelay = true;

byte[] clientMessage = Encoding.ASCII.GetBytes("HelloRaw");
Expand Down

0 comments on commit 1717419

Please sign in to comment.