you can try
this ,although it may or may not be what you are looking for.
Also, a streaming server called
flumotion. you can download the source and see how it implements streaming..
or you can read RFCs or other technical references on how RTSP protocol is like, then code from scratch :)...well, that's the extreme case..