Solved

Server Conversations

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

9 Experts available now in Live!

Get 1:1 Help Now