Solved

Send a message to client in a Multtier application?

Posted on 2002-05-09
5
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

738 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