mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
improve package gudp
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user