DownloadProgress sends the progress updates for the files that are currently being downloaded.
(ctx context.Context, dp *DownloadProgress)
| 397 | |
| 398 | // DownloadProgress sends the progress updates for the files that are currently being downloaded. |
| 399 | func (c *rawConnection) DownloadProgress(ctx context.Context, dp *DownloadProgress) { |
| 400 | c.send(ctx, dp.toWire(), nil) |
| 401 | } |
| 402 | |
| 403 | func (c *rawConnection) ping() bool { |
| 404 | return c.send(context.Background(), &bep.Ping{}, nil) |