3 Jan 2010 22:09
Re: problem with timedsource
Cliff Frey <cliff <at> meraki.com>
2010-01-03 21:09:05 GMT
2010-01-03 21:09:05 GMT
The error message indicates the problem. TimedSource is a "push" element, and TimedSink is a "pull" element... so you would need a queue in between them if you wanted to use both of those elements. It would be much simpler to just do ts :: TimedSource(INTERVAL 0.333, DATA "hi my name is panos and this is my first click configuration"); pr :: Print(CONTENTS "ASCII"); ts -> pr -> Discard; which I believe should work for you. Cliff 2010/1/3 Panos Μatzakos <magic_pan86 <at> yahoo.gr> > Hello, > I am new to Click and i am trying to run my first configuration. > I want to generate some packets through Timedsource and then print them with > Print element(is this the right way?). So i try to run the following: > > ts :: TimedSource(INTERVAL 0.333, DATA "hi my name is panos and this is my > first click configuration"); > pr :: Print(CONTENTS "ASCII"); > tsink :: TimedSink(); > > ts[0]->[0]pr; > pr[0]->[0]tsink; > > expecting to get the DATA message printed. Am i right? > > I get the following error: agnostic ‘pr :: Print’ in mixed context: push > input 0, pull output 0 > Router could not be initialized! > > Could you please tell me what i am doing wrong...? > > > > > ___________________________________________________________ > Χρησιμοποιείτε Yahoo!; > Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail > διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών > μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr > _______________________________________________ > click mailing list > click <at> amsterdam.lcs.mit.edu > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > _______________________________________________ click mailing list click <at> amsterdam.lcs.mit.edu https://amsterdam.lcs.mit.edu/mailman/listinfo/click
RSS Feed