[Click] ToSocket question
Yun Mao
maoy+click at cis.upenn.edu
Sat Mar 5 13:20:46 EST 2005
Hi,
I'm trying to understand why ToSocket is an agnostic type. It seems to me
that it should behave pretty much like ToDevice.u One big difference is
that (from my understanding from the source) ToSocket will keep pulling
packets from the input, no matter whether the socket is available to send
stuff or not. I found this could block click in sendto(). And because it
will pull all packets from the input, Queueing won't help.
Another question: Did anyone try the UNIX socket before? I had to hack the
sendto call to send because my Linux complained that the socket is
connected and won't do the job.
Yun
BTW, First week in click, I have to say cool stuff and fun!
More information about the click
mailing list