dreamworkAPI
Ctrl K
GitHub
typeDocs / Network / Outgoing

Network.Outgoing

typesource

The sender side state of a segmented transfer.

Fields

NameTypeDescription
networkNetworkThe network of the transfer.
peergarrysmod.Player | nilThe receiver, nil on the client.
keygarrysmod.Player | stringThe key of the peer in the per-peer tables.
idintegerThe transfer ID, [0, 255].
datastringThe whole data.
sizeintegerThe size of the data in bytes.
segment_sizeintegerThe size of every segment except the last one, in bytes.
countintegerThe number of segments.
ackedboolean[]The acknowledged segments.
sent_atnumber[]The uptime of the last send of every segment.
resentboolean[]The segments that were sent more than once, excluded from rtt samples.
resent_countintegerThe number of resends, for the log.
acked_countintegerThe number of acknowledged segments.
acked_bytesintegerThe number of acknowledged bytes.
baseintegerThe first unacknowledged segment.
highestintegerThe highest acknowledged segment.
windownumberThe congestion window, in segments.
slow_startbooleantrue until the first loss, the window grows by one per ack instead of one per window.
srttnumber | nilThe smoothed round trip time in seconds, nil until accepted.
srtt_seededboolean | niltrue while srtt is the handshake sample.
rtonumberThe retransmission timeout in seconds.
loss_timenumberThe uptime of the last window cut.
creditnumberThe number of segments that can be sent right now, refilled by pacing.
pump_timenumberThe uptime of the last pump, the base of the pacing refill.
acceptedbooleantrue once the receiver has accepted the transfer.
activitynumberThe uptime of the last progress, for the timeout.
start_timenumberThe uptime of the start.
callbackNetwork.FinishFn | nilThe finish callback of Network:send.
Generated from the dreamwork meta branch.