mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-01 11:13:38 +00:00
CryptoInterface cross platform, UDP listen public
This commit is contained in:
parent
8cec84787d
commit
6711786f44
4 changed files with 25 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue