Link to home
Start Free TrialLog in
Avatar of netbeto
netbeto

asked on

Send a message to client in a Multtier application?

Hy everybody,

Im working in a Multitier application and i want to know if is there any way to the server send a message to a client side ?, i m using TSocketconnect and have lots of clients in diferents IP.
thanks,

Beto.
Avatar of Igor UL7AAjr
Igor UL7AAjr
Flag of Kazakhstan image

Hi netbeto,

usually, client connects to the server and ask server to do something. There is TClientSocket and TServerSocket components.

TServerSocket allow you to reply users using different threads. See threadblocking mode. TClientSocket also need to run in blocking mode. Working bu this way you should'n tave propblems with amount of clients.

------
Igor.
Avatar of nestorua
nestorua

HI,
The TClientSocket.Socket has SendText, SendBuf methods for
sending messages.
Sincerely,
Nestorua.
Avatar of netbeto

ASKER

Hi ITugay

the problem is! i m not using TServerSocket, am i have to have a Internet server (like Domino or something)?? cause i dont have one, so i using TSocktConect! have you done something with that (Socket, DCom) etc, thats the point, in a DCom application im not sure about send message to the clients!!

thanks,

Beto.

ASKER CERTIFIED SOLUTION
Avatar of Igor UL7AAjr
Igor UL7AAjr
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept answer from ITugay

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer