Major overall of data
This commit is contained in:
1 parent
64dbd02874
commit
6126b8259c
12 files changed
+160
-126
No files matched your search
@@ -6,16 +6,12 @@ using System.Threading.Tasks;
|
||||
|
||||
// Network Sync
|
||||
|
||||
namespace MistoxServer.Client {
|
||||
namespace Mistox.Client {
|
||||
public class mUDPClient : IDisposable {
|
||||
|
||||
public event EventHandler onReceived;
|
||||
|
||||
Socket udpClient;
|
||||
bool Alive;
|
||||
int Port;
|
||||
|
||||
public mUDPClient( IPEndPoint ServerAddress ) {
|
||||
public mUDPClient( IPEndPoint ServerAddress, string ConnectionID ) {
|
||||
udpClient = new Socket( AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp );
|
||||
udpClient.SetSocketOption( SocketOptionLevel.IP, SocketOptionName.ReuseAddress, true );
|
||||
udpClient.SetSocketOption( SocketOptionLevel.IP, SocketOptionName.IpTimeToLive, 128 );
|
||||
|
||||
Reference in new issue
Block a user