dreamworkAPI
Ctrl K
GitHub
typeDocs / Network / Incoming

Network.Incoming

typesource

The receiver side state of a segmented transfer.

Fields

NameTypeDescription
networkNetworkThe network of the transfer.
peergarrysmod.Player | nilThe sender, nil on the client.
keygarrysmod.Player | stringThe key of the peer in the per-peer tables.
idintegerThe transfer ID, [0, 255].
sizeintegerThe size of the data in bytes.
segment_sizeintegerThe size of every segment except the last one, in bytes.
countintegerThe number of segments.
checksumintegerThe CRC32 of the whole data announced by the sender.
bufferedbooleantrue if the segments are kept for the receive handlers.
crcchecksum.CRC32 | nilThe running checksum of the delivered data, if not buffered.
segmentsstring[]The received segments, the delivered ones are dropped if not buffered.
received_flagsboolean[]The received segments.
receivedintegerThe number of received segments.
received_bytesintegerThe number of received bytes.
baseintegerThe first missing segment, everything before it is delivered.
highestintegerThe highest received segment.
ack_pendingbooleantrue if a segment arrived since the last ack.
ack_timenumberThe uptime of the last ack.
activitynumberThe uptime of the last received segment, for the timeout.
start_timenumberThe uptime of the start.
Generated from the dreamwork meta branch.