ÄãºÃ£¬»¶Ó­À´µ½¾­¹ÜÖ®¼Ò [µÇ¼] [×¢²á]

ÉèΪÊ×Ò³ | ¾­¹ÜÖ®¼ÒÊ×Ò³ | Êղر¾Õ¾

»ùÓÚSocketµÄͨÐÅ¿ØÖÆϵͳ_¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ

·¢²¼Ê±¼ä£º2014-05-16 À´Ô´£ºÈË´ó¾­¼ÃÂÛ̳
¼ÆËã»úרҵÂÛÎÄ·¶ÎÄ Õª Òª Ëæ×ÅÍøÂç¼¼ÊõµÄ·¢Õ¹£¬ÍøÂçËٶȵļӿ죬Զ³Ì¿ØÖƼ¼ÊõÖ§³Ö½«Öð½¥Õ¼¾Ý¼¼ÊõÖ§³ÖµÄÖ÷Á÷¡£±¾ÎĽ²ÊöµÄÊÇÒ»¸ö»ùÓÚWindows¶ø¿ª·¢µÄÔ¶³Ì¿ØÖƳÌÐò¡£ÔÚVC6.0¿ª·¢»·¾³ÏÂÔËÓÃWinSockµÄAPI¼¼ÊõʵÏÖÔ¶³Ì¿ØÖÆ¡£ ±¾ÎÄÊ×ÏȽéÉÜÁËʵÏÖÔ¶³Ì¿ØÖÆ»ù´¡Socket±à³ÌµÄ»ù±¾¸ÅÄÒÔ¼°WindowsµÄÏûϢϵͳ£¬½Ó×Å´Ó½¨Á¢SocketÌ×½Ó×Ö¿ªÊ¼£¬µ½¹Ø±ÕÌ×½Ó×Ö½áÊø£¬Ïêϸ½éÉÜÁËClientÓëServerÁ¬½Ó¹ý³Ì¡£×îºó½éÉÜÁËÉè¼ÆÌå»áºÍ±à³ÌÌå»á¡£ ×÷Æ·Ö÷Òª²ÉÓÃÁË»ùÓÚ¿Í»§»ú/·þÎñÆ÷ģʽµÄTCP/IP£¬Ó¦ÓÃÌ×½Ó×ÖÀ´Íê³É¿Í»§Ó¦ÓóÌÐòÓë·þÎñÓ¦ÓóÌÐò¼äµÄͨÐÅ£¬ÊµÏÖ¼üÅÌÓëÊó±ê¿ØÖÆ£¬Îļþ¹ÜÀí£¬ÏµÍ³ÐÅÏ¢µÄ»ñÈ¡¼°Ð޸ģ¬Ô¶³ÌÆÁĻץȡµÈ¹¦ÄÜ¡£¶ÔÎļþ¹ÜÀíºÍÖ±½Ó¿ØÆÁµÄʵÏÖ½øÐÐÁËÖصã½éÉÜ¡£ ±¾ÏµÍ³¾­¹ýµ÷ÊÔÓë²âÊÔ£¬½á¹û±íÃ÷±¾ÏµÍ³¸÷¸öÄ£¿é¾ùÄÜÕýÈ·ÔËÐУ¬»ù±¾ÊµÏÖÁËϵͳÉè¼ÆʱµÄÉè¼ÆÄ¿±ê£¬´ïµ½ÁËÔ¤ÆÚµÄÄ¿µÄ¡£µ«ÔÚ°²È«ÐÔÓëÐÅÏ¢¼ì²â·½ÃæÓдý¸Ä½ø¡£ ¹Ø¼ü´Ê: C/Sģʽ£¬Socket£¬TCP/IP Abstract With the development of network technology and the acceleration in the speed of the network, remote control support will gradually occupy the mainstream of technical support. This article is based on the Windows and the development of the remote-control programs.Under the development environment of VC6.0, I have achieved the remote control with the API technology of Winsock. This paper first introduced the remote control based on the basic concept of Socket programming, and the Windows messaging system, and then from the establishment of Socket socket, to closing the end of the socket, described in detail Client Server connection with the process. Experience on the final design and programming experience. Works mainly adopted the client / server model of the TCP /IP, Applicating the socket to complete the communication between the client and server.At last, achieve the keyboard and mouse control, sending and receiving information, systems and process management and so on. In the part of functions, it mainly introduces on the document management and direct control of the screen. After commissioning of the system and test, results showed that the system could be operation of each module, achieved the design goals and got the desired purpose basicly. But the information security and testing need to be improved. Keywords: C / S model£¬Socket£¬TCP/IP Ä¿ ¼ Õª ÒªI AbstractII Ç°ÑÔ1 µÚ1Õ ¿ÎÌâÃèÊö2 1.1 ¸ÅÊö2 1.3 Ä¿Ç°Ô¶³Ì¿ØÖÆÈí¼þµÄÓÅȱµã¼°·¢Õ¹Ç°¾°3 1.4 ±¾ÎÄÑо¿Ö÷ÒªÈÎÎñÓëÄ¿±ê3 1.5 Ñо¿µÄÒâÒå3 µÚ2Õ ϵͳ¹¦Äܼ°Ïà¹Ø¼¼Êõ4 2.1 Ô¶³Ì¿ØÖƵÄÖ÷Òª¹¦ÄÜ4 2.2 Ïà¹Ø¼¼Êõ4 2.2.1 SocketµÄ»ù±¾¸ÅÄî4 2.2.1.1 SocketµÄÒýÈë4 2.2.1.2 SocketµÄÀàÐÍ5 2.2.2»ù±¾Ì×½Ó×Öº¯Êýµ÷ÓÃ6 2.2.3 WindowsϵͳµÄSocket±à³Ì11 2.2.4 WindowsµÄÏûϢϵͳ13 µÚ3Õ TCP/IPЭÒé15 µÚ4Õ C/SģʽԶ³Ì¿ØÖƳÌÐòÉè¼ÆʵÏÖ17 4.1 C/Sģʽ¼ò½é17 4.2³ÌÐòÉè¼ÆʵÏÖ18 4.2.1 ¿Í»§¶ËÉè¼ÆʵÏÖ18 4.2.2±»¿ØÖƶ˳ÌÐòµÄʵÏÖ¹ý³Ì22 4.2.2.1 Ô¶³ÌÎļþ¹ÜÀíµÄʵÏÖ23 4.2.2.2 Ö±½Ó¿ØÆÁµÄʵÏÖ26 4.2.3Èí¼þÔËÐкÍÓйØ˵Ã÷28 4.2.3.1 Èí¼þÔËÐÐ28 4.2.3.2 ÓйØ˵Ã÷29 µÚ5Õ ×ܽá30 ÖÂл31 ²Î¿¼ÎÄÏ×32 ¸½Â¼Ò»WinSock±à³ÌÏà¹Øº¯ÊýµÄ¶¨ÒåÓëµ÷ÓÃ33 ¸½Â¼¶þ Ô´´úÂë37
¾­¹ÜÖ®¼Ò¡°Ñ§µÀ»á¡±Ð¡³ÌÐò
  • ɨÂë¼ÓÈë¡°¿¼ÑÐѧϰ±Ê¼ÇȺ¡±
ÍƼöÔĶÁ
¾­¼ÃѧÏà¹ØÎÄÕÂ
±êÇ©ÔÆ
¾­¹ÜÖ®¼Ò¾«²ÊÎÄÕÂÍƼö