UDPServer


Description:

public UDPServer (UnicastCallbackDelegate unicast_callback, BroadcastCallbackDelegate broadcast_callback, string dev, uint16? port = null, uint16? peerport = null)

These callbacks are used to interpret a unicast/broadcast request.
They are called this way:
| rpcdispatchers, data = this.broadcast_callback(CallerInfo, UDPPayload)
| rpcdispatcher, data, devs_response = this.unicast_callback(CallerInfo, UDPPayload)
where the results are:
| rpcdispatchers: a list of rpcdispatcher (might be empty)
| rpcdispatcher: a dispatcher (or null)
| data: to be passed to marshalled_dispatch
| devs_response: if null we use a new tasklet and do not send response to the client.
| else, we'll send the response through those devs.

Parameters:

unicast_callback NO IDEA
broadcast_callback NO IDEA
dev Device
port Port
peerport Remote port (I think)