From 99f1d9d0ed76a5fa96b2bc0e4c9bb9dfced57557 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 11 Mar 2020 23:59:43 +0800 Subject: [PATCH] improve package gudp --- net/gtcp/gtcp_conn.go | 2 +- net/gudp/gudp_conn.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/gtcp/gtcp_conn.go b/net/gtcp/gtcp_conn.go index aedc235cf..673c34658 100644 --- a/net/gtcp/gtcp_conn.go +++ b/net/gtcp/gtcp_conn.go @@ -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. diff --git a/net/gudp/gudp_conn.go b/net/gudp/gudp_conn.go index d6d77474d..d9fdf317f 100644 --- a/net/gudp/gudp_conn.go +++ b/net/gudp/gudp_conn.go @@ -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 is used for customizing the receiving buffer size. If <= 0, // it uses the default buffer size, which is 1024 byte. //