LEFT | RIGHT |
(no file at all) | |
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 |
| 5 // +build darwin freebsd linux openbsd windows |
4 | 6 |
5 // Unix domain sockets | 7 // Unix domain sockets |
6 | 8 |
7 package net | 9 package net |
8 | 10 |
9 import ( | 11 import ( |
10 "os" | 12 "os" |
11 "syscall" | 13 "syscall" |
12 ) | 14 ) |
13 | 15 |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 } | 411 } |
410 if laddr == nil { | 412 if laddr == nil { |
411 return nil, &OpError{"listen", "unixgram", nil, errMissingAddres
s} | 413 return nil, &OpError{"listen", "unixgram", nil, errMissingAddres
s} |
412 } | 414 } |
413 fd, e := unixSocket(net, laddr, nil, "listen") | 415 fd, e := unixSocket(net, laddr, nil, "listen") |
414 if e != nil { | 416 if e != nil { |
415 return nil, e | 417 return nil, e |
416 } | 418 } |
417 return newUDPConn(fd), nil | 419 return newUDPConn(fd), nil |
418 } | 420 } |
LEFT | RIGHT |