Package zombie.core.raknet
Class UdpEngine
java.lang.Object
zombie.core.raknet.UdpEngine
public class UdpEngine
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description java.util.List
connections
protected RakNetPeerInterface
peer
int
port
-
Constructor Summary
Constructors Constructor Description UdpEngine(int port, int maxConnections, java.lang.String serverPassword, boolean bListen)
-
Method Summary
Modifier and Type Method Description void
Connect(long steamID, java.lang.String serverPassword)
void
Connect(java.lang.String hostname, int port, java.lang.String serverPassword)
void
endPacketBroadcast()
void
endPacketBroadcast(int priority, int reliability)
void
endPacketBroadcastExcept(int priority, int reliability, UdpConnection connection)
void
forceDisconnect(long connectedGUID)
UdpConnection
getActiveConnection(long connection)
long
getClientOwnerSteamID(long guid)
long
getClientSteamID(long guid)
int
getMaxConnections()
RakNetPeerInterface
getPeer()
java.lang.String
getServerIP()
java.nio.ByteBuffer
Receive()
void
SetServerPassword(java.lang.String password)
void
Shutdown()
ByteBufferWriter
startPacket()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
connections
public java.util.List connections -
peer
-
port
public int port
-
-
Constructor Details
-
UdpEngine
public UdpEngine(int port, int maxConnections, java.lang.String serverPassword, boolean bListen) throws java.net.ConnectException- Throws:
java.net.ConnectException
-
-
Method Details
-
Shutdown
public void Shutdown() -
SetServerPassword
public void SetServerPassword(java.lang.String password) -
getServerIP
public java.lang.String getServerIP() -
getClientSteamID
public long getClientSteamID(long guid) -
getClientOwnerSteamID
public long getClientOwnerSteamID(long guid) -
startPacket
-
endPacketBroadcast
public void endPacketBroadcast(int priority, int reliability) -
endPacketBroadcast
public void endPacketBroadcast() -
endPacketBroadcastExcept
-
Receive
public java.nio.ByteBuffer Receive() -
getActiveConnection
-
Connect
public void Connect(java.lang.String hostname, int port, java.lang.String serverPassword) -
Connect
public void Connect(long steamID, java.lang.String serverPassword) -
forceDisconnect
public void forceDisconnect(long connectedGUID) -
getPeer
-
getMaxConnections
public int getMaxConnections()
-