![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
Lidgren Network Library documentation |
NetPeer..::..RegisterReceivedCallback Method |
NetPeer Class See Also Send Feedback |
Call this to register a callback for when a new message arrives
Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)
Syntax
C# |
---|
public void RegisterReceivedCallback( SendOrPostCallback callback ) |
Visual Basic |
---|
Public Sub RegisterReceivedCallback ( _ callback As SendOrPostCallback _ ) |
Visual C++ |
---|
public: void RegisterReceivedCallback( SendOrPostCallback^ callback ) |
Parameters
- callback
- Type: System.Threading..::..SendOrPostCallback
[Missing <param name="callback"/> documentation for "M:Lidgren.Network.NetPeer.RegisterReceivedCallback(System.Threading.SendOrPostCallback)"]