Show / Hide Table of Contents

# Class EventBasedNetListener

##### Inheritance

object
EventBasedNetListener

##### Implements

INetEventListener
IDeliveryEventListener
INtpEventListener
IPeerAddressChangedListener

###### Namespace: LiteNetLib

###### Assembly: LiteNetLib.dll

##### Syntax

    public class EventBasedNetListener : INetEventListener, IDeliveryEventListener, INtpEventListener, IPeerAddressChangedListener

### Methods

#### ClearConnectionRequestEvent()

##### Declaration

    public void ClearConnectionRequestEvent()

#### ClearDeliveryEvent()

##### Declaration

    public void ClearDeliveryEvent()

#### ClearNetworkErrorEvent()

##### Declaration

    public void ClearNetworkErrorEvent()

#### ClearNetworkLatencyUpdateEvent()

##### Declaration

    public void ClearNetworkLatencyUpdateEvent()

#### ClearNetworkReceiveEvent()

##### Declaration

    public void ClearNetworkReceiveEvent()

#### ClearNetworkReceiveUnconnectedEvent()

##### Declaration

    public void ClearNetworkReceiveUnconnectedEvent()

#### ClearNtpResponseEvent()

##### Declaration

    public void ClearNtpResponseEvent()

#### ClearPeerAddressChangedEvent()

##### Declaration

    public void ClearPeerAddressChangedEvent()

#### ClearPeerConnectedEvent()

##### Declaration

    public void ClearPeerConnectedEvent()

#### ClearPeerDisconnectedEvent()

##### Declaration

    public void ClearPeerDisconnectedEvent()

### Events

#### ConnectionRequestEvent

##### Declaration

    public event EventBasedNetListener.OnConnectionRequest ConnectionRequestEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnConnectionRequest |

#### DeliveryEvent

##### Declaration

    public event EventBasedNetListener.OnDeliveryEvent DeliveryEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnDeliveryEvent |

#### NetworkErrorEvent

##### Declaration

    public event EventBasedNetListener.OnNetworkError NetworkErrorEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnNetworkError |

#### NetworkLatencyUpdateEvent

##### Declaration

    public event EventBasedNetListener.OnNetworkLatencyUpdate NetworkLatencyUpdateEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnNetworkLatencyUpdate |

#### NetworkReceiveEvent

##### Declaration

    public event EventBasedNetListener.OnNetworkReceive NetworkReceiveEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnNetworkReceive |

#### NetworkReceiveUnconnectedEvent

##### Declaration

    public event EventBasedNetListener.OnNetworkReceiveUnconnected NetworkReceiveUnconnectedEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnNetworkReceiveUnconnected |

#### NtpResponseEvent

##### Declaration

    public event EventBasedNetListener.OnNtpResponseEvent NtpResponseEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnNtpResponseEvent |

#### PeerAddressChangedEvent

##### Declaration

    public event EventBasedNetListener.OnPeerAddressChangedEvent PeerAddressChangedEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnPeerAddressChangedEvent |

#### PeerConnectedEvent

##### Declaration

    public event EventBasedNetListener.OnPeerConnected PeerConnectedEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnPeerConnected |

#### PeerDisconnectedEvent

##### Declaration

    public event EventBasedNetListener.OnPeerDisconnected PeerDisconnectedEvent

##### Event Type

Type | Description
--- | ---
EventBasedNetListener.OnPeerDisconnected |

### Implements

INetEventListener
IDeliveryEventListener
INtpEventListener
IPeerAddressChangedListener