What is Peach
Installing
Tutorials
Methodology
Introduction
FAQ
Peach 3
Peach Pits
 General Conf
 Data Modeling
 State Modeling
 Agents
  Monitors
 Test
  Publishers
  Loggers
Running
Minset
Peach 2.3

License

Udp Publisher

The Udp publisher is able to send and receive UDP packets.

Parameters

  • Host — Host or ip address or remote host

  • Port — Destination port number (optional when first packet is sent by target)

  • SrcPort — Source port (optional)

  • Interface — IP of interface to bind to (optional)

  • Timeout — How long to wait in milliseconds for data/connection (optional, default 3,000)

  • MaxMTU — Maximum allowable MTU property value (optional, default 131,070)

  • MinMTU — Minimum allowable MTU property value (optional, default 1,280)

Actions

  • output — Send data to remote host

  • input — Receive data from remote host

Examples

Sending and receiving data
<DataModel name="TheDataModel">
   <String name="value" length="4" />
</DataModel>

<StateModel name="TheState">
        <State name="initial">
                <Action type="output">
                        <DataModel ref="TheDataModel"/>
                        <Data>
                                <Field name="value" value="mike" />
                        </Data>
                </Action>

                <!-- receive 4 bytes -->
                <Action type="input">
                        <DataModel ref="TheDataModel"/>
                </Action>
        </State>
</StateModel>

<Test name="Default">
    <!-- ... -->
        <Publisher class="Udp">
                <Param name="Host" value="127.0.0.1" />
                <Param name="Port" value="53" />
        </Publisher>
</Test>