why is sending one piece if info to the client so complex? Because this shouldn't be done at a "tcp/ip" level. The lowest you would have to go is using a socket, but 99% of the time - it doesn't even need to take place this low. Using Pipes (http://msdn.microsoft.com/en-us/library/aa365780(VS.85).aspx) or Remoting Channels (http://msdn.microsoft.com/en-us/library/ms973857.aspx) is generally considered a more digestible, direct practice.
is their a simple code that will send a small string to the client? Naturally, this depends on what you interpret as simple. If you enabled telnetting on both the client and server - you could simply execute a "net send 'some string'" message that displays in a modal dialog box on the receiving machine. However, this is horrifically insecure, and you'll have a hard (if not impossible) time trying to pry the message from the system and use it yourself.
if not could someone post a code with a detailed explanation? Tell us the architecture you have in place... I get that you want to send a string to a remote PC, but we could use more details. For instance, do you have code running on that PC expecting/anticipating the message? Does it plan on responding? Is the communication large or something sensitive where you'd need to reorder what's been received and verify its checksum to ensure integrity? Is it happening on a LAN or is this being thrown into the internet cloud? I understand you want a quick, easy sample showing this, and that my responses, while not intentionally, are serving to fuel your frustration in all of this... But that's how programming works.
There's always a simple and direct solution for every descriptive and well-defined question. If the question starts to become more generic, one of two things happens with the solution... 1) It's concise but not thought out, sacrificing pertinent information regarding intended use and security warnings or 2) It's elaborate and dwelves into topics you not only could careless about, but may end up consufing you. - Edited bySantosh Kumar NairMSFT, Administrator22 hours 51 minutes agoFixed HTML
- Edited bySantosh Kumar NairMSFT, Administrator22 hours 32 minutes agoFixed HTML
-
|