SetLinkSpeed

Top  Previous  Next

Function SetLinkSpeed(link, speed: integer): integer;

 

Use this function for changing the speed on a specific link. This only affects the speed as it is loaded into memory.

 

This function is of most use for temporarily changing the speed of link in connection with roadwork's etc.

 

On RW NetServer Pro an additional optional argument is available: (How: integer)

 

It can take these values:

 

0: The change is immediate and temporary. If the network is currently being used by some client, the change will be aborted.

1: The change is automatically postponed to the time the network is not in use by clients. The change is temporary.

2: The change is immediate and persistent. If the network is currently being used by some client, the change will be aborted.

3: The change is automatically postponed to the time the network is not in use by clients. The change is persisted.

 

Default is 0.

 

For persistent changes (2 and 3), see here.

 

Possible error codes: -10 -30 -43

Versions: Standard Pro

ActiveX / VCL / CLX component: RW_NetMGMT