Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(185)

Side by Side Diff: src/pkg/net/udpsock_posix.go

Issue 6497044: code review 6497044: net: delete unused IP-level socket option helpers (Closed)
Patch Set: diff -r dbcfb4459ab8 https://code.google.com/p/go Created 11 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/net/sockoptip_windows.go ('k') | src/pkg/net/unicast_posix_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // +build darwin freebsd linux netbsd openbsd windows 5 // +build darwin freebsd linux netbsd openbsd windows
6 6
7 // UDP sockets 7 // UDP sockets
8 8
9 package net 9 package net
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 } 230 }
231 231
232 func joinIPv4GroupUDP(c *UDPConn, ifi *Interface, ip IP) error { 232 func joinIPv4GroupUDP(c *UDPConn, ifi *Interface, ip IP) error {
233 err := joinIPv4Group(c.fd, ifi, ip) 233 err := joinIPv4Group(c.fd, ifi, ip)
234 if err != nil { 234 if err != nil {
235 return &OpError{"joinipv4group", c.fd.net, &IPAddr{ip}, err} 235 return &OpError{"joinipv4group", c.fd.net, &IPAddr{ip}, err}
236 } 236 }
237 return nil 237 return nil
238 } 238 }
239 239
240 func leaveIPv4GroupUDP(c *UDPConn, ifi *Interface, ip IP) error {
241 err := leaveIPv4Group(c.fd, ifi, ip)
242 if err != nil {
243 return &OpError{"leaveipv4group", c.fd.net, &IPAddr{ip}, err}
244 }
245 return nil
246 }
247
248 func joinIPv6GroupUDP(c *UDPConn, ifi *Interface, ip IP) error { 240 func joinIPv6GroupUDP(c *UDPConn, ifi *Interface, ip IP) error {
249 err := joinIPv6Group(c.fd, ifi, ip) 241 err := joinIPv6Group(c.fd, ifi, ip)
250 if err != nil { 242 if err != nil {
251 return &OpError{"joinipv6group", c.fd.net, &IPAddr{ip}, err} 243 return &OpError{"joinipv6group", c.fd.net, &IPAddr{ip}, err}
252 } 244 }
253 return nil 245 return nil
254 } 246 }
255
256 func leaveIPv6GroupUDP(c *UDPConn, ifi *Interface, ip IP) error {
257 err := leaveIPv6Group(c.fd, ifi, ip)
258 if err != nil {
259 return &OpError{"leaveipv6group", c.fd.net, &IPAddr{ip}, err}
260 }
261 return nil
262 }
OLDNEW
« no previous file with comments | « src/pkg/net/sockoptip_windows.go ('k') | src/pkg/net/unicast_posix_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b