another. As long as data is available in socket , a go routine is
responsible to write out as efficient as possible. I would like to read all
data in socket and write all of data into another socket. But as I know,
golang's read function returns from either EOF, specific length or specific
char. Could I know how many available data in buffer? So that the buffer is
good to fit the reading data and write to socket at once. I thought this
method is the most efficient. Isn't it? Thanks for help.
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.