LEFT | RIGHT |
(Both sides are equal) |
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 package net | 5 package net |
6 | 6 |
7 import ( | 7 import ( |
8 "once" | 8 "once" |
9 "os" | 9 "os" |
10 "sync" | 10 "sync" |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 return f, nil | 359 return f, nil |
360 } | 360 } |
361 | 361 |
362 func init() { | 362 func init() { |
363 var d syscall.WSAData | 363 var d syscall.WSAData |
364 e := syscall.WSAStartup(uint32(0x101), &d) | 364 e := syscall.WSAStartup(uint32(0x101), &d) |
365 if e != 0 { | 365 if e != 0 { |
366 initErr = os.NewSyscallError("WSAStartup", e) | 366 initErr = os.NewSyscallError("WSAStartup", e) |
367 } | 367 } |
368 } | 368 } |
LEFT | RIGHT |