Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
NetSprocket Functions / Managing Player Information


NSpPlayer_GetThruput

You can use the NSpPlayer_GetThruput function to determine the data throughput between the caller and the specified player. Throughput is measured in bytes per second.

UInt32 NSpPlayer_GetThruput (
	NSpGameReference inGame,
	NSpPlayerID inPlayer);
inGame
An opaque reference to your game object.
inPlayer
The player ID you are sending the test message to.
function result
The throughput between the caller and the player.
DESCRIPTION
This function is synchronous. That is, it blocks until it finishes testing throughput unless the time-out is reached. If time-out is exceeded, -1 will be returned. Throughput between any two players may vary greatly during the course of a game.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996