UDPServer
Object Hierarchy:
Description:
public class UDPServer : Object
An instance of this class is created for each managed NIC in order to listen to UDP requests.
Namespace: Ntk.Core
Package: Netsukuku - vala port
Content:
Creation methods:
- 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.
Methods: