コード例 #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
ファイル: Platform.ci.cs プロジェクト: YoungGames/manicdigger
 public abstract bool EnetHostService(EnetHost host, int timeout, EnetEventRef enetEvent);
コード例 #5
0
ファイル: Platform.ci.cs プロジェクト: YoungGames/manicdigger
 public abstract void EnetHostInitializeServer(EnetHost host, int port, int peerLimit);
コード例 #6
0
ファイル: Platform.ci.cs プロジェクト: YoungGames/manicdigger
 public abstract void EnetHostInitialize(EnetHost host, IPEndPointCi address, int peerLimit, int channelLimit, int incomingBandwidth, int outgoingBandwidth);
コード例 #7
0
ファイル: Platform.ci.cs プロジェクト: YoungGames/manicdigger
 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
ファイル: Platform.ci.cs プロジェクト: YoungGames/manicdigger
 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;
 }