We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4744fbe commit 613e665Copy full SHA for 613e665
zh/08.1.md
@@ -312,7 +312,7 @@ Go语言包中处理UDP Socket和TCP Socket不同的地方就是在服务器端
312
func ResolveUDPAddr(net, addr string) (*UDPAddr, os.Error)
313
func DialUDP(net string, laddr, raddr *UDPAddr) (c *UDPConn, err os.Error)
314
func ListenUDP(net string, laddr *UDPAddr) (c *UDPConn, err os.Error)
315
- func (c *UDPConn) ReadFromUDP(b []byte) (n int, addr *UDPAddr, err os.Error
+ func (c *UDPConn) ReadFromUDP(b []byte) (n int, addr *UDPAddr, err os.Error)
316
func (c *UDPConn) WriteToUDP(b []byte, addr *UDPAddr) (n int, err os.Error)
317
318
一个UDP的客户端代码如下所示,我们可以看到不同的就是TCP换成了UDP而已:
0 commit comments