Network.Outgoing
The sender side state of a segmented transfer.
Fields
| Name | Type | Description |
|---|---|---|
network | Network | The network of the transfer. |
peer | garrysmod.Player | nil | The receiver, nil on the client. |
key | garrysmod.Player | string | The key of the peer in the per-peer tables. |
id | integer | The transfer ID, [0, 255]. |
data | string | The whole data. |
size | integer | The size of the data in bytes. |
segment_size | integer | The size of every segment except the last one, in bytes. |
count | integer | The number of segments. |
acked | boolean[] | The acknowledged segments. |
sent_at | number[] | The uptime of the last send of every segment. |
resent | boolean[] | The segments that were sent more than once, excluded from rtt samples. |
resent_count | integer | The number of resends, for the log. |
acked_count | integer | The number of acknowledged segments. |
acked_bytes | integer | The number of acknowledged bytes. |
base | integer | The first unacknowledged segment. |
highest | integer | The highest acknowledged segment. |
window | number | The congestion window, in segments. |
slow_start | boolean | true until the first loss, the window grows by one per ack instead of one per window. |
srtt | number | nil | The smoothed round trip time in seconds, nil until accepted. |
srtt_seeded | boolean | nil | true while srtt is the handshake sample. |
rto | number | The retransmission timeout in seconds. |
loss_time | number | The uptime of the last window cut. |
credit | number | The number of segments that can be sent right now, refilled by pacing. |
pump_time | number | The uptime of the last pump, the base of the pacing refill. |
accepted | boolean | true once the receiver has accepted the transfer. |
activity | number | The uptime of the last progress, for the timeout. |
start_time | number | The uptime of the start. |
callback | Network.FinishFn | nil | The finish callback of Network:send. |