Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
can peach output what it receive?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gui  
View profile  
 More options Oct 29, 11:04 pm
From: gui <gui.gui1...@hotmail.com>
Date: Thu, 29 Oct 2009 20:04:07 -0700 (PDT)
Local: Thurs, Oct 29 2009 11:04 pm
Subject: can peach output what it receive?
hi mike
i am tring to output what peach recive from mysql,but fail in the end
can peach do that?
here is the pit file:

<?xml version="1.0" encoding="utf-8"?>
<Peach xmlns="http://phed.org/2008/Peach" xmlns:xsi="http://www.w3.org/
2001/XMLSchema-instance"
        xsi:schemaLocation="http://phed.org/2008/Peach /peach/peach.xsd">

        <!-- Import defaults for Peach instance -->
        <Include ns="default" src="file:defaults.xml" />
        <Include ns="pt" src="file:PeachTypes.xml" />

<DataModel name="PacketHeader">
        <Number name="Length" size="24" signed="false"
endian="little">
                <Relation type="size" of="Data"/>
        </Number>
        <Number name="Number" size="8" signed="false" endian="big" />
        <Blob name="Data" />
</DataModel>

        <!-- MySQL Protocol -->

<!-- Server -> Client -->
<DataModel name="HandshakePacket" ref="PacketHeader">
        <Block name="Data">
                <Number name="ProtocolVersion" size="8" signed="false"
endian="big"/>
                <String name="ServerVersion" nullTerminated="true" />
                <Number name="ThreadId" size="32" signed="false"
endian="big" />
                <Blob name="ScrambleBuff" length="8" />
                <Blob length="1" value="0" isStatic="true" />
                <Number name="Capabilities" size="16" signed="false"
endian="big" />
                <Number name="Language" size="8" signed="false"
endian="big" />
                <Number name="Status" size="16" signed="false"
endian="big" />
                <Blob length="13" />
                <Blob name="ScrambleBuff2" length="13" />
        </Block>
</DataModel>

        <!-- TODO: Create state model -->
        <StateModel name="TheState" initialState="Initial">

                <State name="Initial">
                        <Action type="input">
                                <DataModel ref="HandshakePacket" />
                        </Action>
                </State>

        </StateModel>

        <StateModel name="MyLink" initialState="MyLinkState">

                <State name="MyLinkState">
                        <Action type="output">
                                <DataModel ref="HandshakePacket" />
                        </Action>
                </State>

        </StateModel>

<Test name="TheTest">

<StateModel ref="TheState"/>

<Publisher class="file.FilePerIteration">
<Param name="fileName" value="FilePer-%d.txt"/>
</Publisher>
</Test>

        <Test name="Link">
    <StateModel ref="MyLink"/>
    <Publisher class="tcp.Tcp">
        <Param name="host" value="192.168.1.118"/>
        <Param name="port" value="3306"/>
    </Publisher>
</Test>

        <!-- Configure a single run -->
<Run name="DefaultRun">

    <Test ref="Link" />

    <Test ref="TheTest" />

    <Logger class="logger.Filesystem">
        <Param name="path" value="logs" />
    </Logger>

</Run>

</Peach>
<!-- end -->


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Eddington  
View profile  
 More options Oct 30, 5:13 am
From: Michael Eddington <medding...@gmail.com>
Date: Fri, 30 Oct 2009 02:13:29 -0700
Local: Fri, Oct 30 2009 5:13 am
Subject: Re: [Peach] can peach output what it receive?
If you use the --debug parameter you will see the packets being sent
back and forth.  Good way for testing is "--debug -1" to send just a
single sequence with no mutations.

mike

On 10/29/2009 8:04 PM, gui wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google