CryptoInterface cross platform, UDP listen public

This commit is contained in:
Chord 2016-04-22 23:00:39 -04:00
parent 8cec84787d
commit 6711786f44
4 changed files with 25 additions and 3 deletions

View file

@ -13,6 +13,8 @@ object PsLogin {
catch {
case e : UnsatisfiedLinkError =>
println("Unable to initialize " + CryptoInterface.libName)
println("Reason: " + e.getMessage)
e.getStackTrace.foreach(println)
sys.exit(1)
}

View file

@ -11,7 +11,7 @@ final case class SendPacket(msg : ByteVector, to : InetSocketAddress)
class UdpListener(nextActor: ActorRef) extends Actor with ActorLogging {
import context.system
IO(Udp) ! Udp.Bind(self, new InetSocketAddress("localhost", 51000))
IO(Udp) ! Udp.Bind(self, new InetSocketAddress("0.0.0.0", 51000))
var bytesRecevied = 0L
var bytesSent = 0L