Solved

Server Conversations

Posted on 2001-09-17
5
181 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now