|
-
Aug 30th, 2006, 10:03 PM
#1
Thread Starter
PowerPoster
application caller
in .NET, is there a way to find out who called my application, then directly communicating with them? example, some 3rd party application calls my application I have developed, I want to find out which app it was then send back any messages back to it - whatever it may be.
-
Aug 31st, 2006, 01:14 PM
#2
Hyperactive Member
Re: application caller
Seems to me that you might have to use TCP/IP or UDP/IP communication to do something like that - Jennifer
-
Aug 31st, 2006, 01:23 PM
#3
Thread Starter
PowerPoster
Re: application caller
no, very wrong and very incorrect.
we are talking about 2 applications within the same computer on the same user account.
app 1 -> app 2
app 2 needs to know WHO called it and to get its handle if at all possible
example:
Jennifer -> Techno
Techno needs to know who called it, which in this case is Jennifer. Want to then establish communication/talks with that caller
-
Aug 31st, 2006, 06:43 PM
#4
Hyperactive Member
Re: application caller
I still don't see why you can't use tcp/ip. I had something to do almost identical to that before and I used tcp/ip even if the two applications are on the same account and computer. You will just have to use 2 different port numbers, the IP address will be localhost.
And the communication you're talking about, is there another way other than tcp/ip? If there is please let me know, since right now the only way I know is via tcp/ip.
When the client connects to the server with tcp/ip, the server could read the client handle information. To make it better, the client could send the message in xml format and include a tag in that message to indicate it's a correct client. Then the server will know who it is and call the correct methods and / or objects.
-
Aug 31st, 2006, 06:46 PM
#5
Thread Starter
PowerPoster
Re: application caller
TCP/IP is different to what I am trying to achieve. This is not involving network communication in any way
-
Aug 31st, 2006, 07:52 PM
#6
Re: application caller
If this was possible I would think that it would be done through the Process class, or perhaps some other class in the Diagnostics namespace that corresponded to a process tree. The Process class has no members that will do this and I can't see any other class in the Diagnostics namespace that look like they would either. I have no problem accepting the fact that this is not possible. Windows keeps track of which processes started which other processes because you can end a process tree from the Task Manager, but it seems very likely that if a process was expecting communication from a child process that it would explicitly create a link between the two. You have to do this with two forms within an application and they're more closely linked than two separate processes are.
-
Aug 31st, 2006, 08:49 PM
#7
Thread Starter
PowerPoster
Re: application caller
i agree with you, just thought I would ask as my knowledge can sometimes be limited!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|