What is the maximum number of bytes that the server can pass to the client over the network per second ? Thanks
What is the maximum number of bytes that the server can pass to the client over the network per second ? Thanks
The short answer is it depends.
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
Can you give me an avrage number of bytes per second ? Depends on What ?
HP or IBM swallow, err, server?
Disclaimer: This post shows my ignorance at the time of its making. I claim ownership of but not responsibility for all errors in it. Reference at your own peril.
It depends on the hardware configuration and operating systems (more accurately, their implementation of networking) of the machines that host the client and the server. It also depends on the networking hardware, and various attributes of the networking cabling (type [coax, fibre optic, twistered pair, etc], length, quality, etc) as well as attributes of other networking devices between client and server (wireless devices, repeaters, hubs, bridges, switches, ....).
All of those things are quite variable, to say the least. So your question is meaningless.
I am using ARN microprocessor and Linux OS. as well i am using TCP sockets both client and server.Can you give me addlist an avrage number of bytes per second ?The madia is cables
Vote to close.
Disclaimer: This post shows my ignorance at the time of its making. I claim ownership of but not responsibility for all errors in it. Reference at your own peril.
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
The entire thread might as well be asking "How fast is a car?".
Without any specific details, specifically pertaining to hardware of the client, the server, and any link between, your question is impossible to answer. If you're trying to optimize network throughput in your program, usually this is fruitless anyway. The delay is almost invariably caused by something out of your control, such as the ISP.
Average Speed 100mbs
Standard Deviation 1000mbs
First you look at the network cards plugged into (or built onto the motherboard) of each device, and work out whether it's a 10Mb or 100Mb (or if you're really lucky 1000Mb) capable NIC.
Then you look at each router / switch / hub/ between them, and work out what they're rated at as well.
The network speed will be the lowest number you find.
Then you look at the general quality of all your cables along the route to try and estimate how reliable the link is at the physical level, to try and guess how much retrying is going on to form a reliable TCP connection. Try sending a lot of UDP packets and see how many arrive.
Next you try and estimate what the background network activity is for other processes on your machine(s) and other machine(s) on the network.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.