Autor Beitrag
neo2
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Do 13.05.04 12:44 
Ich habe ein Problem, ich stehe jetzt vor Delphi und versuche krampfhaft einen best. Port zu spreen und wenn möglich auch wieder freigeben zu können. Kann mir da jemand helfen? Ich hab keine Ahnung, wie ich an das Problem ran gehen soll.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 13.05.04 13:02 
also ich würde da mal einfach so vorgehen: nimm die INDY kompos. schapp dir da den TCP server und setzt den einfach auf den Port den du blocken willst.
dann ist der port zwar nicht geblockt. ber du kannst mit dem was rein kommt machen was du willst und es kann kein anderes proggi auf den port.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
lemming
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 470

Mac OS 10.3.1
Delphi 6 Pro, Kylix 3
BeitragVerfasst: Do 13.05.04 14:28 
War mal für ne Firewall. Ich hoffe es hilft dir

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
var
  Ziegelstein: array[1..1024] of TServerSocket;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
  CreateZiegel: Integer;
begin

     For CreateZiegel := 1 To 1024 Do
         begin
              try
              Ziegelstein[CreateZiegel] := TServerSocket.Create(Self);
              Ziegelstein[CreateZiegel].Port := CreateZiegel;
              Ziegelstein[CreateZiegel].Active := True;
              except
                ShowMessage(IntToStr(CreateZiegel));
              end;
         end;
end;