NET BUFFER SIZE This command will return the number of items queuing in the net buffer to be processed.
Syntax
    Return Integer=NET BUFFER SIZE()
Returns
This command will return the number of items queuing in the net buffer to be processed
Description
This buffer can fill up if there is too much data coming into the net game. You can use this value to regulate the amount of traffic your program generates thus reducing this value. An ideal count is zero.
Example Code
    rem Network game can communicate numbers and strings

    while inkey$()<>"x"

    cls

    print "HANDLE NET MESSAGES (Press X To Continue)"

    if mouseclick()=1

    print "SENDING..."

    send net message string 0,"hello world"

    endif

    rem Receive Part (from all other players)

    get net message

    if net message exists()=1 then print "RECEIVING..."

    while net message exists()=1

    ReturnTo=net message player to()

    ReturnFrom=net message player from()

    print "items in net  buffer ",net buffer size()

    if net message type()=3 then ReturnString$=net message string$()

    get net message

    endwhile

    endwhile
See also
MULTIPLAYER Commands Menu Index