Solved

Server Conversations

Posted on 2001-09-17
5
184 Views
Last Modified: 2010-04-06
Hi...

have been a time, Hi All ...


well, this time i have a kind of a server
running on port XXX

i want to make a program that will check
if the server is running on 127.0.0.1
on port XXX, if so, make EDIT1 enabled
as for me to send commands to this server.

Well, i am missing one thing in all this thing,
i think it is the hardest thing at all, sending
the text commands to the server, that accept text
commands only, i mean, how can i send the server
a certain command i wrote in EDIT1, and see the
result in MEMO1 !!


Any Ideas ??
0
Comment
Question by:neostudio
  • 3
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
edey earned 100 total points
ID: 6488647
This snippet assumes a form, with an edit, a memo, a button & two INDY controls (http://www.nevrona.com/indy) - a TIDUDPClient & TIDUDPServer:


procedure TForm1.Button1Click(Sender: TObject);
begin
     idUDPClient1.Send(edit1.text);
end;

procedure TForm1.IdUDPServer1UDPRead(Sender: TObject; AData: TStream;
  ABinding: TIdSocketHandle);
var
   str : string;
begin
     memo1.Lines.LoadFromStream(AData);
end;


The idUDPClient host should be 127.0.0.1 & the port numbers for both indy clients should math.  When you hit the buttone the contents of the memo are replaced with the contents of the edit.

GL
Mike
0
 
LVL 3

Author Comment

by:neostudio
ID: 6489214
Dear Mike..

let me be frank, i am trying to send commands
to a Half-Live server on my LAN, i have seen tools
that are able to do so, is correct password is provided .



Any Ideas...
0
 
LVL 6

Expert Comment

by:edey
ID: 6489382
With That, I'm afraid, I can't help you. perhaps if we knew what networking & authentication protocols the server uses, & if I had the time to sniff out some of the commands it might be posibel, but I don't.  Sorry.

GL
Mike
0
 
LVL 3

Author Comment

by:neostudio
ID: 6489855
;-)

What if i give you a complete working program that does it ?? it is also written in Delphi 5.0 but to communicate with Linux servers, it is not able to communicate with Win32 based servers !!

will that help ???
0
 
LVL 6

Expert Comment

by:edey
ID: 6490485
Perhaps.

GL
Mike
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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