Interface P2PService.ConnectionListener
- Enclosing interface:
P2PService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Consumer of network connection events.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConnect(PeerConnection connection) Called when a new peer connection is established.
-
Method Details
-
onConnect
Called when a new peer connection is established.- Parameters:
connection- the newly established peer connection
-