Autor Beitrag
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: So 22.09.02 10:37 
Wie kann ich, wenn ich eine Datei mit der Socket-Komponente im LAN oder im Internet übertrage, die Übertragungsrate berechnen?

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: So 29.09.02 15:36 
Hi O'rallY,

also wie man die Geschwindigkeit berechnet ist doch ein einfaches Prinzip:

- Variable setzen: x1 := übertragene Bytes
- setze einen Timer (interval 1000)
- dann guckst du nach, wieviel du in der Sekunde übertragen hast:
x2 := übertragene Bytes nach der Sekunde
Geschwindigkeit := (x2-x1) / 1024 (kB) pro Sekunde

Gruß
_______

Ex0rzist
O'rallY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: So 29.09.02 18:15 
danke für die Antwort, habs aber schon selber rausgekriegt! ist ja auch irgendwie logsch Bytes pro Sekunde :mrgreen: .

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: So 29.09.02 19:08 
Die einfachsten Lösungen übersieht man meist.
(das ist bestimmt auch ein Gesetz von Murphy :lol: )


Gruß
_______

Ex0rzist
O'rallY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: So 29.09.02 19:49 
Das ist sogar wahrscheinlich! :wink: :mrgreen:

_________________
.oO'rallY
Linux is like a tipi: No gates, no windows and a gnu-eating apache inside...