Re: [RTnet-developers] Ethernet IP
Brought to you by:
bet-frogger,
kiszka
|
From: Jan K. <jan...@si...> - 2011-02-09 14:24:48
|
On 2011-02-09 15:18, Glen Wernersbach wrote: > Jan, > > I think I figured out the send error. > > With RTNET I cannot receive and send on the same socket. > > So I cannot with RTNET do the follow that works with Linux: > 1. Socket > 2. SetSocketOpts > 3. Bind > 4. Listen > 5. Accept > 6. Recv > 7. Send > 8. close > ------ > > I can however with RTNET do the following: > 1. Socket > 2. SetSocketOpts > 3. Bind > 4. Listen > 5. Accept > 6. Recv > 7. Close > ------ > 8. Socket > 9. SetSocketOpts > 10. Bind > 11. Connect > 12. Send > 13. Close > > The second seemed to work. > > Does this makes sense to you? Not yet. You once said accept() fails, but your setup starts to diverge after recv() (by doing a send()). What errors do which services return? Did you check that you have sufficient buffers configured for your network load (RTNET_RTIOC_EXTPOOL)? Again, it's _much_ easier if you stick this simple setup in a generic test case. Thanks, Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux |