Slide 52
Slide 52 text
// Make the channel with the number of
connections
channels := make(chan ChannelResult,
number_of_connections)
!
// Start the request in a new goroutine
go makeRequest(address, start_byte, end_byte,
out, channels)
!
//Wait for the result of the goroutine in the
channel
for(loop_var < number_of_connections) {
chan_res := <-channels
// Process the result and save to the file
}