Autor Beitrag
[r2d2]
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

WinXP
D5 Enterprise
BeitragVerfasst: Mi 19.11.03 15:00 
hi
jeder sagt, dass es total einfach ist, ich weiß aber trotzdem nicht, wie es geht: wie versendet man einen string übers internet an eine bestimmte ip? auf jedem rechner soll ein programm laufen, das eine sendet die daten, das andere empfängt sie.

Danke
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: Mi 19.11.03 15:05 
Ich empfehle dir UDP. Schau dir die Fastnet UDP Demo an. Soviel sei gesagt. Du musst den String zum senden in einen Stream packen. Auf der anderen Seite kommt er dann als Stream an und er wird wieder entpackt.

Das ist total einfach ;)

lemming
[r2d2] Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

WinXP
D5 Enterprise
BeitragVerfasst: Mi 19.11.03 19:30 
Ist ja wirklich total einfach, danke :roll:
Noch eine kleine Frage: Wie viele Ports gibt es denn eigentlich? 9999?
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Do 20.11.03 03:04 
lemming O_o
man muss das doch nich in nen stream packen .. nur für dateien benutzt man nen stream oder etwa nich ?

@r2d2 willste einen chat schreiben??

_________________
"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)
Koelschman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 21



BeitragVerfasst: Do 20.11.03 10:19 
Titel: Ports
hallo,
also Ports gibt es etwas mehr als 64.000,
wobei du beachten solltest, daß die ersten 1023 Ports reservierte Ports (sogenannte Well-Known-Ports) sind. Also wenn du sicher gehen willst, nimmst du einfach einen Port über 2000 da hast du keine Probleme.

Wenn du eine Übersicht über diese haben willst, kannst du die unter \windows\system32\drivers\etc\services anschauen.

Viele Softwarefirmen nutzen inszwischen auch Ports über 1023 als Ports für Ihre Server, wie zB. SAP oder so.

Ich hoffe, ich konnte dir ein bisschen helfen.

Gruß aus Köln
Laxans
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: So 30.11.03 12:21 
Und wie Packt man daten jetzt in einen Strem???
Koelschman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 21



BeitragVerfasst: Do 04.12.03 19:51 
Titel: Schicken von Daten
Hi,
also eigentlich ist das ganz einfach. Du kannst mit writeln Daten über einen TCP-Client an einen TCP-Server schicken. Ich kann mal ein kleines Beispiel uploaden, falls da bedarf besteht.
Auf dem Server kann man mit Readln auf den Empfangsbuffer zugreife.

Olli
Laxans
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28



BeitragVerfasst: Fr 05.12.03 22:10 
Upload wäre nett. Am besten nur ein editfeld wo man die IP des servers eingibt und ein opendialog wo man die datei auswählt.
Beim server nur ein button für das readln und ein savedialog...

Danke schonmal