Committing something for testing... may revert.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7037 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 14 years ago
parent b73f71aeff
commit 17ecd6f0c9
  1. 6
      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

Loading…
Cancel
Save