Package: simu5g.apps.vod
VoDUDPServer
simple moduleThis module models the transmission of a video-on-demand (VoD) stream over UDP. The input is taken from a specified trace file, representing a video encoded according to the Scalable Video Coding (SVC) standard. Each line of the trace file defines the size and transmission time of a video frame.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
localPort | int |
port to listen on |
|
vod_trace_file | string | ||
fps | int | 25 | |
traceType | string | "SVC" |
"Scalable Video Coding" (from MPEG4?) -- only format implemented |
destAddresses | object | [] |
clients parameters |
destPort | int | ||
clientsStartStreamTime | double | 0s | |
clientsReqTime | object | [] | |
startTime | double | 0s | |
tos | int | -1 |
if not -1, set the Type Of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value |
Properties
Name | Value | Description |
---|---|---|
display | i=block/app |
Gates
Name | Direction | Size | Description |
---|---|---|---|
socketIn | input | ||
socketOut | output |
Source code
// // This module models the transmission of a video-on-demand (VoD) stream over UDP. // The input is taken from a specified trace file, representing a video encoded // according to the Scalable Video Coding (SVC) standard. Each line of the trace file defines // the size and transmission time of a video frame. // simple VoDUDPServer like IApp { parameters: int localPort; // port to listen on string vod_trace_file; int fps = default(25); string traceType = default("SVC"); // "Scalable Video Coding" (from MPEG4?) -- only format implemented // clients parameters object destAddresses = default([]); int destPort; volatile double clientsStartStreamTime @unit(s) = default(0s); object clientsReqTime @unit(s) = default([]); double startTime @unit(s) = default(0s); int tos = default(-1); // if not -1, set the Type Of Service (IPv4) / Traffic Class (IPv6) field of sent packets to this value @display("i=block/app"); gates: input socketIn @labels(UdpControlInfo/up); output socketOut @labels(UdpControlInfo/down); }File: src/apps/vod/VoDUDPServer.ned