Autor Beitrag
avenger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 27.02.10 01:59 
Ich verstehs nicht,

Ich habe einen IndyServer Programmiert mit dem ich mich via Telnet wunderbar verbinden kann.
Habe jedoch ein Problem mit dem Client. Mein Client verbindet sich und ich bekomme auch das Greeting vom Server zurueck.

Versuche ich jedoch ein Commando zu senden kommt beim server nichts an ! Was mache ich falsch.
In Telnet verbinde ich mich mit der IP und gebe command: BFK 300 and und der CommandHandler beim Server gibt mir den String zureck.
Bei der folgenden procedure leider nichts....


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.Button3Click(Sender: TObject);
begin
with IdTCPClient1 do
    begin
      host:= edit6.Text;   //IP Adresse
      if not connected then
      begin
      Connect;
      end;
      begin
          SendCmd('BFK ' + edit2.Text);
      end;
end;
end;
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Sa 27.02.10 02:36 
Ich denke eher, das Problem liegt in der Empfangsroutine am Server.

_________________
PROGRAMMER: A device for converting coffee into software.
avenger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 27.02.10 02:41 
Wenn ich BFK 200 ueber Telnet eingebe dann bekomme ich 200 OK zurueck Warum dann nicht ueber den Indy Client ?
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Sa 27.02.10 02:45 
Hm, versuchs mal statt mit SendCmd mit Write bzw. WriteLn.

_________________
PROGRAMMER: A device for converting coffee into software.
avenger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 27.02.10 03:37 
Geht auch nicht, keine Exception kein nix :-(
avenger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 27.02.10 06:19 
Oh mist hat sich erledigt ! Haette sollen frueher ins Bett gehen.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10184
Erhaltene Danke: 1259

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 27.02.10 13:15 
Moin!

user profile iconavenger hat folgendes geschrieben Zum zitierten Posting springen:
Oh mist hat sich erledigt ! Haette sollen frueher ins Bett gehen.
Und, was war´s jetzt? ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
avenger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 90



BeitragVerfasst: Sa 27.02.10 19:52 
Das traue ich mich nicht zu sagen *schaem*. Vieleicht die Uhrzeit :-)

Der Code oben funktioniert tadellos.