improve package gudp

This commit is contained in:
John
2020-03-11 23:59:43 +08:00
parent 707b08c585
commit 99f1d9d0ed
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ func (c *Conn) Send(data []byte, retry ...Retry) error {
}
}
// Recv receives data from the connection.
// Recv receives and returns data from the connection.
//
// Note that,
// 1. If length = 0, which means it receives the data from current buffer and returns immediately.

View File

@ -82,7 +82,7 @@ func (c *Conn) Send(data []byte, retry ...Retry) (err error) {
}
}
// Recv receives data from remote address.
// Recv receives and returns data from remote address.
// The parameter <buffer> is used for customizing the receiving buffer size. If <buffer> <= 0,
// it uses the default buffer size, which is 1024 byte.
//