You can use Winsock control (or APIs).