Re: internet & delphi

Posted by webmaster Guido on January 09, 2001 at 03:57:18:

In Reply to: internet & delphi posted by thatsmej on December 31, 2000 at 16:44:40:

: cs1.Active := false;
: cs1.Host := txthost.text;
: cs1.Port := port;
: cs1.Active := true;
: cs1.Socket.SendText('halllo');
: cs1.Socket.Close;
: what is wrong with this code?
: i tryed to make a portscanner.
: i get a error code like
: 'windows api error connect'

Depends from what you want to do... If you have Delphi 4 or higher, then the palette contains some Internet components. In your Delphi's demo\internet directory, there are simple example projects for all these components, and they all work (I tried them). Best to start with these, before trying other stuff. Good luck!