Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : Service and Socket basic questions

www.cryer.info
Managed Newsgroup Archive

Service and Socket basic questions

Subject:Service and Socket basic questions
Posted by:"Gianluca" (gianlucadei..@tiscali.it)
Date:Mon, 16 May 2005 12:19:24

Hello to everyone,

we are new in socket and service management, so we have some basilar
questions.

What we would like to do:
- we are trying to code a Client/Server application.
- the Client side should be a Service Application(TService).
- to the Client side we are using a TcpClient component
- the Client should peridically (about 0.5 sec) make some Window API calls
and save the returned values in a file.
- the Client should periodically (about 30 minutes) connect to the server,
send the values, receive back some data and, finally, close the connection.
- the Sever will be developed in VBasic

Our doubts:
1) We known that the file (WinApi values) size could be 10-15Kb, could we
use a loop of  TcpClient1.Sendln( ), one for file's linee, to send it to the
server? (we cannot use ftp)
2) Should we add to the Service another Thread to manage(collect and send)
the WinApi values
or we can do it without?
3) Can Service, WinApi calls and TcpClient coexist?

thanks in advance for the support,
Gianluca

Replies:

www.cryer.info
Managed Newsgroup Archive