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

Delta Between Two Patch Sets: src/pkg/net/iprawsock_posix.go

Issue 5011046: code review 5011046: build: add build comments to core packages (Closed)
Left Patch Set: diff -r e292d4870573 https://go.googlecode.com/hg Created 12 years, 6 months ago
Right Patch Set: diff -r a12d99eb48bb https://go.googlecode.com/hg Created 12 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/net/interface_stub.go ('k') | src/pkg/net/ipsock_posix.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 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 openbsd windows 5 // +build darwin freebsd linux openbsd windows
6 6
7 // (Raw) IP sockets 7 // (Raw) IP sockets
8 8
9 package net 9 package net
10 10
11 import ( 11 import (
12 "os" 12 "os"
13 "sync" 13 "sync"
14 "syscall" 14 "syscall"
15 ) 15 )
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 // BindToDevice binds an IPConn to a network interface. 299 // BindToDevice binds an IPConn to a network interface.
300 func (c *IPConn) BindToDevice(device string) os.Error { 300 func (c *IPConn) BindToDevice(device string) os.Error {
301 if !c.ok() { 301 if !c.ok() {
302 return os.EINVAL 302 return os.EINVAL
303 } 303 }
304 c.fd.incref() 304 c.fd.incref()
305 defer c.fd.decref() 305 defer c.fd.decref()
306 return os.NewSyscallError("setsockopt", syscall.BindToDevice(c.fd.sysfd, device)) 306 return os.NewSyscallError("setsockopt", syscall.BindToDevice(c.fd.sysfd, device))
307 } 307 }
LEFTRIGHT

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