~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/net/net.go

  • Committer: Package Import Robot
  • Author(s): Serge Hallyn
  • Date: 2014-11-18 15:12:26 UTC
  • mfrom: (14.2.12 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20141118151226-zug7vn93mn3dtiz3
Tags: 2:1.3.2-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - Support co-installability with gccgo-go tool:
    - d/rules,golang-go.install: Rename bin/go -> bin/golang-go
    - d/golang-go.{postinst,prerm}: Install/remove /usr/bin/go using
      alternatives.
  - d/copyright: Amendments for full compiliance with copyright format.
  - d/control: Demote golang-go.tools to Suggests to support Ubuntu MIR.
  - dropped patches (now upstream):
    - d/p/issue27650045_40001_50001.diff
    - d/p/issue28050043_60001_70001.diff
    - d/p/issue54790044_100001_110001.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        Addr() Addr
276
276
}
277
277
 
278
 
var errMissingAddress = errors.New("missing address")
 
278
// Various errors contained in OpError.
 
279
var (
 
280
        // For connection setup and write operations.
 
281
        errMissingAddress = errors.New("missing address")
 
282
 
 
283
        // For both read and write operations.
 
284
        errTimeout          error = &timeoutError{}
 
285
        errClosing                = errors.New("use of closed network connection")
 
286
        ErrWriteToConnected       = errors.New("use of WriteTo with pre-connected connection")
 
287
)
279
288
 
280
289
// OpError is the error type usually returned by functions in the net
281
290
// package. It describes the operation, network type, and address of
337
346
func (e *timeoutError) Timeout() bool   { return true }
338
347
func (e *timeoutError) Temporary() bool { return true }
339
348
 
340
 
var errTimeout error = &timeoutError{}
341
 
 
342
 
var errClosing = errors.New("use of closed network connection")
343
 
 
344
349
type AddrError struct {
345
350
        Err  string
346
351
        Addr string