예제 #1
0
 public override void Start()
 {
     host = platform.EnetCreateHost();
     platform.EnetHostInitialize(host, null, 1, 0, 0, 0);
     tosend   = new QueueINetOutgoingMessage();
     messages = new QueueNetIncomingMessage();
 }
예제 #2
0
 public override void Start()
 {
     host = new EnetHostNative()
     {
         host = new ENet.Host()
     };
     ((EnetHostNative)host).host.InitializeServer(Port, 256);
 }
예제 #3
0
 public abstract void EnetHostInitializeServer(EnetHost host, int port, int peerLimit);
예제 #4
0
 public abstract bool EnetHostService(EnetHost host, int timeout, EnetEventRef enetEvent);
예제 #5
0
 public abstract void EnetHostInitializeServer(EnetHost host, int port, int peerLimit);
예제 #6
0
 public abstract void EnetHostInitialize(EnetHost host, IPEndPointCi address, int peerLimit, int channelLimit, int incomingBandwidth, int outgoingBandwidth);
예제 #7
0
 public abstract EnetPeer EnetHostConnect(EnetHost host, string hostName, int port, int data, int channelLimit);
예제 #8
0
 public override EnetPeer EnetHostConnect(EnetHost host, string hostName, int port, int data, int channelLimit)
 {
     EnetHostNative host_ = (EnetHostNative)host;
     ENet.Peer peer = host_.host.Connect(hostName, port, data, channelLimit);
     EnetPeerNative peer_ = new EnetPeerNative();
     peer_.peer = peer;
     return peer_;
 }
예제 #9
0
 public abstract EnetPeer EnetHostConnect(EnetHost host, string hostName, int port, int data, int channelLimit);
예제 #10
0
 public override void Start()
 {
     host = platform.EnetCreateHost();
     platform.EnetHostInitialize(host, null, 1, 0, 0, 0);
     tosend = new QueueINetOutgoingMessage();
     messages = new QueueNetIncomingMessage();
 }
예제 #11
0
 public override void Start()
 {
     host = platform.EnetCreateHost();
     platform.EnetHostInitializeServer(host, Port, 256);
 }
예제 #12
0
 public override bool EnetHostService(EnetHost host, int timeout, EnetEventRef enetEvent)
 {
     EnetHostNative host_ = (EnetHostNative)host;
     ENet.Event e;
     bool ret = host_.host.Service(timeout, out e);
     EnetEventNative ee = new EnetEventNative();
     ee.e = e;
     enetEvent.e = ee;
     return ret;
 }
예제 #13
0
 public override void EnetHostInitializeServer(EnetHost host, int port, int peerLimit)
 {
     EnetHostNative host_ = (EnetHostNative)host;
     host_.host.InitializeServer(port, peerLimit);
 }
예제 #14
0
 public override void EnetHostInitialize(EnetHost host, IPEndPointCi address, int peerLimit, int channelLimit, int incomingBandwidth, int outgoingBandwidth)
 {
     if (address != null)
     {
         throw new Exception();
     }
     EnetHostNative host_ = (EnetHostNative)host;
     host_.host.Initialize(null, peerLimit, channelLimit, incomingBandwidth, outgoingBandwidth);
 }
예제 #15
0
 public abstract bool EnetHostService(EnetHost host, int timeout, EnetEventRef enetEvent);
예제 #16
0
 public abstract bool EnetHostCheckEvents(EnetHost host, EnetEventRef event_);
예제 #17
0
 public abstract bool EnetHostCheckEvents(EnetHost host, EnetEventRef event_);
예제 #18
0
 public abstract void EnetHostInitialize(EnetHost host, IPEndPointCi address, int peerLimit, int channelLimit, int incomingBandwidth, int outgoingBandwidth);
예제 #19
0
 public override bool EnetHostCheckEvents(EnetHost host, EnetEventRef event_)
 {
     EnetHostNative host_ = (EnetHostNative)host;
     ENet.Event e;
     bool ret = host_.host.CheckEvents(out e);
     EnetEventNative ee = new EnetEventNative();
     ee.e = e;
     event_.e = ee;
     return ret;
 }