Frame Rate

I have an application for video streaming through TCP/IP and port number.
How can i set the streaming frame rate and how to retrieve the actual rate?

I tried the codings from
http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/CameraExample
but it seems incorrect. im using windows sockets programming. hence the drop frames should not be that high.
[380 byte] By [DylanShaw] at [2007-11-20 10:06:39]