Autor Beitrag
Michael POHL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51

Win 7 pro / 10/64 pro
D2010 Pro LMD 10 / D5 pro LMD 5
BeitragVerfasst: Di 13.05.03 10:05 
:arrow: Hallo Kollegen,
kann mir jemand ein Buch o.ä. empfehlen indem steht, wie man von einem Rechner der online ist, in einen andern kommt der auch online ist.
Es soll keine Remoteverbindung werden, sondern irgendwie via TCP/IP über's Internet.

Vielen Dank

Michael Pohl

_________________
100 Jahre leben heisst 100 Jahre lernen.
Tana´Ri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 230



BeitragVerfasst: Di 13.05.03 10:13 
Hi

mir fällt dazu TClientSocket und TServerSocket ein, da kannst auch Services benutzen (TCI/IP), findest du im Register Internet, hoffe das hilft dir weiter.

_________________
mfg
Tana´Ri
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Di 13.05.03 10:15 
lass blos die beiden kombos weg :D

nimm indy kombos ... damit kannste alles machen
man kann die downloaden

TCP/IP , UDP, IPX alle protokolle

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Di 13.05.03 21:01 
Du kannst es auch so machen, habe ich irgendwo aus den weiten des Internets :

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ComCtrls, winsock;

type
  TForm1 = class(TForm)
    RichEdit1: TRichEdit;
    Button1: TButton;
    Edit1: TEdit;
    procedure Button1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var addr : TInaddr;
var hostEntry : pHostEnt; 
    wsdata : TWSAData; 
    fLasterr : integer; 
    fHandle : THandle; 
    winsockOK : boolean;
begin 
     richedit1.Lines.Clear; 
     fLasterr := WSAStartup(makeWord(1,1), wsdata); 
     case fLasterr of 
      WSAEINVAL, 
      WSASYSNOTREADY, 
      WSAVERNOTSUPPORTED : winsockOK := false; 
     else winsockOK := true; 
     end; 
     if winsockOK then 
     begin 
          fhandle := AllocateHWnd(WndProc); 
          richedit1.Lines.Add('Ready...'); 
     end; 
     getmem(hostEntry, MAXGETHOSTSTRUCT); 
     richedit1.lines.add('--------------------------------------');
     hostentry := getHostbyName(pchar(edit1.text));
     if hostentry <> nil then 
     begin 
          richedit1.Lines.Add('looking up for Host : ' + hostentry.h_name); 
          addr := PInaddr( hostentry^.h_addr_list^)^; 
          richedit1.lines.add('IP : ' + inet_ntoa(addr)); 
     end 
     else 
     begin 
          richedit1.Lines.Add('lookup failed for '+edit1.text); 
     end; 
end; 

end.