Re: [RTnet-developers] Ethernet IP
Brought to you by:
bet-frogger,
kiszka
|
From: Jan K. <jan...@si...> - 2011-02-09 15:25:40
|
On 2011-02-09 15:58, Glen Wernersbach wrote: > My current theory is that with RTNET you need a Connect() to do a Send(). That would be clearly a bug. I still can't see how this may happen, though. > > Connect() only works if a socket is not in listen(). You either accept connections or you establish them. I'm not sure if switching between both stats is even a valid transition. > > Not sure what happens yet if I change the send() to a sentto() if the first > example send, sendto, sendmsg, write - they all end up in the same handler internally. Target address is ignored. > > On Xenomai , Sent() does not error. it just blocks. On RTAI, it produces an > "oops". [/me still waiting for a kernel log] The fact that Xenomai blocks likely means, the socket is in TCP_ESTABLISHED state. "Just" the communication fails or something else prevents the RTnet side to consider its TX window open. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux |