public void OnNetworkReceiveUnconnected(NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType) { Console.WriteLine("[Server] ReceiveUnconnected: {0}", reader.GetString(100)); }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { Console.WriteLine("[Client] error! " + socketErrorCode); Errors++; }
public void ServerDisconnected() { remoteEndPoint = null; ChangeState(State.Searching); networkBehaviour.StartSearching(this); }
public void OnNetworkReceiveUnconnected(NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType) { }
public virtual void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { throw new NotImplementedException(); }
void INatPunchListener.OnNatIntroductionSuccess(NetEndPoint targetEndPoint, string token) { //Ignore we are server }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { Debug.Log("On Network Error!"); }
void INetEventListener.OnNetworkReceiveUnconnected(NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType) { }
/// <summary> /// Create a new connection message. /// </summary> /// <param name="senderAddress">The address of who sent it.</param> protected NetConnectionMessage(NetEndPoint senderAddress) : base(senderAddress) { }
public void OnNetworkError(NetEndPoint endPoint, int error) { Console.WriteLine("[Client] error! " + error); }
void IUnreliableChannelListener.ChannelDidReceiveMessage(UnreliableChannel channel, MessageContainer container, NetEndPoint from) { this.listener?.NetworkClientDidReceiveMessage(container, from); }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { Debugger.LogError("[CLIENT] error! " + socketErrorCode); }
public void GameFound(NetEndPoint remoteEndPoint) { Debug.LogError("Game Found called on GameMain, that's unexpected!"); }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { Debug.Log("Network error: " + socketErrorCode); }
public void OnNetworkReceiveUnconnected(NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType) { Debug.Log("On Network Recieve Unconnected!"); }
void INetEventListener.OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { }
/// <summary> /// Called whenever an error happens, we /// log this to the console for now. /// </summary> private void ListenerOnNetworkErrorEvent(NetEndPoint endpoint, int socketerrorcode) { CSM.Log($"Received an error from {endpoint.Host}:{endpoint.Port}. Code: {socketerrorcode}"); }
public virtual void OnNetworkReceiveUnconnected(NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType) { throw new NotImplementedException(); }
/// <summary> /// Create a new incoming meta message. /// </summary> /// <param name="senderAddress">The IP of who sent it.</param> protected NetMetaMessage(NetEndPoint senderAddress) : base(senderAddress) { }
public WaitPeer(NetEndPoint internalAddr, NetEndPoint externalAddr) { Refresh(); InternalAddr = internalAddr; ExternalAddr = externalAddr; }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { }
public void Put(NetEndPoint endPoint) { Put(endPoint.Host); Put(endPoint.Port); }
public void OnNetworkError(NetEndPoint endpoint, int socketErrorCode) { Log.Warn("Socket error: " + socketErrorCode); }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { Debug.Log("[SERVER] error " + socketErrorCode); }
public void OnNetworkReceiveUnconnected(NetEndPoint endpoint, NetDataReader reader, UnconnectedMessageType type) { }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { Console.WriteLine("[Server] error: " + socketErrorCode); }
void INetworkServerListener.NetworkServerDidReceiveUnidentifiedMessage(MessageContainer container, NetEndPoint from) { ThreadChecker.AssertUnreliableChannel(); if (container.Is((int)MessageType.natIdentifier)) { var executor = new Executor < NatIdentifierRequestExecutor <TPlayer>, GameServerMessageRouter <TPlayer> .ServerModel <NetEndPoint>, NatIdentifierRequestMessage >(new GameServerMessageRouter <TPlayer> .ServerModel <NetEndPoint>(this, from), container); this.router.dispatcher.Enqueue(executor.Execute); } }
public void OnNetworkError(NetEndPoint endPoint, int socketErrorCode) { Debug.Log("[CLIENT] We received error " + socketErrorCode); }
public void OnNetworkReceiveUnconnected(NetEndPoint remoteEndPoint, NetDataReader reader, UnconnectedMessageType messageType) { //Client.Connect(remoteEndPoint.Host, 9050); Console.WriteLine("recieved unconnected"); }
public void Put(NetEndPoint endPoint) { Put(endPoint.Host); Put(endPoint.Port); }
public void JoinGame(NetEndPoint remoteEndPoint) { connected = true; client.Connect(remoteEndPoint); }