Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server Conversations

Posted on 2001-09-17
5
Medium Priority
?
190 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
[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
  • 3
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
edey earned 400 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

688 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