Socket.setPerformancePreferences

Can someone help me get more information on what this method does Socket.setPerformancePreferences(int connectionTime, int latency, int bandwidth)and how it affects Socket performance? The Java API information is very short and introductory. Any links containing some examples and some discussions on this subject will be very helpful. I tried to find it, but could find very useful information.

+5
source share
2 answers

Here is the source code for this method in the 1.6 Oracle distribution:

public void setPerformancePreferences(int connectionTime,
                                      int latency,
                                      int bandwidth)
{
/* Not implemented yet */
}

So he does nothing.

+11
source
public void setPerformancePreferences(int connectionTime,
                                      int latency,
                                      int bandwidth)

. TCP/IP . , , TCP/IP. , , .

, , . ; , . , . , , , (1, 0, 0). , (0, 1, 2).

.

: connectionTime - , . - Int, - , : 1.5

:
http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Socket.html #setPerformancePreferences (int, int, int).

, , Android, Eclipse android :

public void setPerformancePreferences (int connectionTime, int latency, int bandwidth) 

: API Level 1 connectionTime, .

.

connectionTime , . - , . , , .

" ". , Android, - , , Android.

+1

All Articles