OSDN Git Service

Committing something for testing... may revert.
authorPSpeed42@gmail.com <PSpeed42@gmail.com@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Sat, 19 Mar 2011 06:42:33 +0000 (06:42 +0000)
committerPSpeed42@gmail.com <PSpeed42@gmail.com@75d07b2b-3a1a-0410-a2c5-0572b91ccdca>
Sat, 19 Mar 2011 06:42:33 +0000 (06:42 +0000)
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@7037 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

engine/src/networking/com/jme3/network/kernel/udp/UdpConnector.java

index 982fd1d..44806ed 100644 (file)
@@ -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