internal void FirePostConnectionEvent(ConnectionEvent eventType, Uri uri, int spoolSize, Exception error = null) { OnConnectionEvent?.Invoke(eventType, uri, spoolSize, error?.Message, error); }
protected virtual void OnUpdateHandlerEvent(ConnectionEventArgs e) { OnConnectionEvent?.Invoke(this, e); }
private void OnConnection(Peer peer) { Debug.Log("Connection from " + peer.IP + ":" + peer.Port.ToString()); OnConnectionEvent?.Invoke(this, peer); }
public void Connect(SocketInput input, SocketOutput output) { connectedOutputs.Add(output); OnConnectionEvent?.Invoke(input, output); }