Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: asynchronous scoket I/O

www.cryer.info
Managed Newsgroup Archive

Re: asynchronous scoket I/O

Subject:Re: asynchronous scoket I/O
Posted by:"Francois Piette [ICS & Midware]" (francois.piet..@overbyte.be)
Date:Mon, 16 Oct 2006 11:33:51

> I need to connect to a remote COM port of a network controller and the
> only documentaion is to 'open a socket to a hostname:port, and then you
> are connected to the serial port'. I'm at a loss as to where to begin.
> Since it's bidrectional, I assume I just don't do something as simple
> as a TCP client connection.

I think it is that simple !
If not a simple TCP connection, it could be a telnet connection but probably
not since telnet add a number of control function which could interfer with
the normal I/O.

If you nee asynchronous I/O, probably ICS is the tool you need. You'll get
an OnDataAvailable event each time you receive data and OnDataSent event
each time your data has been sent out. No need to do multithreading since it
automatically multitask. Of course if you need it, you may use
multithreading.

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive