Solved

Send a message to client in a Multtier application?

Posted on 2002-05-09
5
148 Views
Last Modified: 2010-04-04
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.
0
Comment
Question by:netbeto
5 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 7000975
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.
0
 
LVL 4

Expert Comment

by:nestorua
ID: 7001450
HI,
The TClientSocket.Socket has SendText, SendBuf methods for
sending messages.
Sincerely,
Nestorua.
0
 

Author Comment

by:netbeto
ID: 7002397
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.

0
 
LVL 9

Accepted Solution

by:
ITugay earned 100 total points
ID: 7004199
Hi Beto,

do you mean that server needs to initiate communication with client? It looks like wrong concept, not sure that it is possible, or you need to have server on client part.

-----
Igor.
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005485
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
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now