Re: help with RTSock...am not understanding anything.

vishal changrani <[email protected]>
Newsgroups gmane.linux.real-time.rtlinux.general
Message-ID <[email protected]>
Ok heres what I understand of RTSock as per your documentation....
 
RTSock enables one to send and recieve UDP packets to and from a Real time task. However the actual connection is still established by a user space task which uses the standard network driver like in my case the 3Com59x.
 
So what if I use a real time fifo (as provided by RTLinux) to communicate between the real time task and user space task. i.e. Instead of using sockets in real time task,  UDP packets will be fowarded to the real time task via the real time fifo?
Please let me know if what I have interpreted is correct since I have to carry on my work in this direction.
 
I apologize for bugging you.
 
Hope you will reply soon,
Vishal Changrani
 


Robert Kavaler <[email protected]> wrote:
I doubt there is such help available, but I wrote rtsock so I may be 
able to help. 

Did you try the example? Did it work? After you try it, the next step 
is to understand it, which may be where you are. I think it is hard to 
explain (I wrote the documentation too, that was the best I could do). 
The fundamental design of rtsock pushes all of the opening and closing 
and binding and connecting and error handling of sockets to user space, 
where they are done as usual, and only the processing of UDP packets is 
done in the realtime process. *If you want your entire code, including 
opening and closing the sockets and binding/connected them, to run in 
realtime then rtsock is NOT for you*. Now given that you have both 
realtime and user space things going on with rtsock, you should look at 
the example of the realtime part and see what is going on there. The 
user space part is identical to standard socket programming with the 
exception of one additional ioctl to the rtsock device. This call is 
used to bind (i.e. pass) the user space created socket with the rtsock 
handler.

I hope this helps as a place to start.

Robert


vishal changrani wrote:

> Hi all...
> I want to do some network programming in RTlinuc. As per the archives 
> I tired to use RTsock. However..am finding it very hard how to write a 
> simple code in RTsock.
> I apologize if I am sounding naive but I have done socket programming 
> in C but am not able to comprehend at al the exmaples of RTSock,
> Is there any book or online help for RTSock programming which teaches 
> the basics and stuff.
> 
> Please help,
> Vishal Changrani
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> vote.yahoo.com - Register online to vote today!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Rtl mailing list
>[email protected]
>http://www2.fsmlabs.com/mailman/listinfo/rtl
> 
>


		
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!

_______________________________________________
Rtl mailing list
[email protected]
http://www2.fsmlabs.com/mailman/listinfo/rtl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.