I am developing on an application, where i am implementing desktop screen sharing functionality from one computer to another through my program. I have read it can be achieved by sharing network packets from source to destination computer through socket programming. I want to know, how can i convert desktop screen display into network packets? Please advise!

Thank you.