Showing posts with label socket. Show all posts
Showing posts with label socket. Show all posts

Wednesday, October 8, 2008

Check if a specific TCP or UDP port is open

This article will show you how to scan in c++ a TCP or UDP port to see if it’s open.

The TCP (Transmission Control Protocol ) is intended to provide a reliable process-to-process communication service in a multinetwork environment. The TCP is intended to be a host-to-host protocol in common use in multiple networks.

User Datagram Protocol (UDP) is one of the core protocols of the Internet Protocol Suite. Using UDP, programs on networked computers can send short messages sometimes known as datagrams (using Datagram Sockets) to one another.

UDP does not guarantee reliability or ordering in the way that TCP does. Datagrams may arrive out of order, appear duplicated, or go missing without notice. Avoiding the overhead of checking whether every packet actually arrived makes UDP faster and more efficient, for applications that do not need guaranteed delivery.

Sunday, October 5, 2008

Remote control PC's across a LAN

This is a basic remote control application for Windows formed from two modules. One that runs as server and listen to ports 5001 and 5002 (5001 used for image transfer and 5002 for mouse commands, keyboard is not implemented), and the second one which runs as client.

The application was written in c++ and compiled using Microsoft Visual Studio. NET 2003 (7.1).It can still be compiled using Microsoft Visual Studio. NET 2002 but you should edit ".vcproj" file (change Version="7.10" with Version="7.00").

As technology has been used MFC (Microsoft Foundation Classes), API (Application Programming Interface), ATL (Active Template Library), COM (Component Object Model), + GDI (Graphical Device Interface +) and STL (Standard Template Library).