Explorar el Código

Committing something for testing... may revert.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7037 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
PSp..om hace 14 años
padre
commit
17ecd6f0c9

+ 4 - 2
engine/src/networking/com/jme3/network/kernel/udp/UdpConnector.java

@@ -67,11 +67,13 @@ public class UdpConnector implements Connector
     public UdpConnector( InetAddress local, int localPort, 
                          InetAddress remote, int remotePort ) throws IOException
     {
-        this.sock = new DatagramSocket( localPort, local );
+        InetSocketAddress localSocketAddress = new InetSocketAddress(localPort);
+        this.sock = new DatagramSocket( localSocketAddress );
+        //this.sock = new DatagramSocket( localPort, local );
         remoteAddress = new InetSocketAddress( remote, remotePort );
         
         // Setup to receive only from the remote address
-        //sock.connect( remoteAddress );
+        sock.connect( remoteAddress );
         //
         // The above is a really nice idea since it means that we
         // wouldn't get random datagram packets from anything that