Skip to content

Commit e303750

Browse files
authored
Merge pull request #93 from juanfem/issue_92
Fixing #92 by creating a IPv4 DatagramChannel by default.
2 parents 975d384 + fa4be18 commit e303750

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pvAccessJava/src/org/epics/pvaccess/impl/remote/udp/BlockingUDPConnector.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package org.epics.pvaccess.impl.remote.udp;
1616

1717
import java.net.InetSocketAddress;
18+
import java.net.StandardProtocolFamily;
1819
import java.nio.channels.DatagramChannel;
1920

2021
import org.epics.pvaccess.impl.remote.ConnectionException;
@@ -73,7 +74,7 @@ public Transport connect(TransportClient client, ResponseHandler responseHandler
7374
DatagramChannel socket = null;
7475
try
7576
{
76-
socket = DatagramChannel.open();
77+
socket = DatagramChannel.open(StandardProtocolFamily.INET);
7778

7879
// use blocking channel
7980
socket.configureBlocking(true);

0 commit comments

Comments
 (0)