[Click] problem communicating through the socket
Jeganmohan Sivakulendren
jeganmhn at gmail.com
Tue Dec 18 01:22:26 EST 2007
Hi All,
I tried to send data through a socket using click.Another program outside
click to read the data.
I had sent 4 1's five times
InfiniteSource(DATA \<31 31 31 31>, LIMIT 5, STOP true)
//-> Strip(14)
//-> Align(4, 0) // in case we're not on x86
//-> CheckIPHeader(BADSRC 18.26.4.255 2.255.255.255 1.255.255.255)
//-> Print(ok)
//-> Discard;
-> ToSocket(TCP,192.1.1.1, 1234)
But the output of the other program which was reading from the socket was
Waiting for TCP connection on port 1234 ...
connected to 192.168.1.102:52794
-- 1111
-- 1111
-- 1111
-- 1111
-- 1111
Why is there a mismatch. ie why are characters present before the 1's.
Cheers,
Jegan
More information about the click
mailing list