LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 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 "os" | 8 "os" |
9 ) | 9 ) |
10 | 10 |
11 // FileConn returns a copy of the network connection corresponding to | 11 // FileConn returns a copy of the network connection corresponding to |
12 // the open file f. It is the caller's responsibility to close f when | 12 // the open file f. It is the caller's responsibility to close f when |
13 // finished. Closing c does not affect f, and closing f does not | 13 // finished. Closing c does not affect f, and closing f does not |
14 // affect c. | 14 // affect c. |
15 func FileConn(f *os.File) (c Conn, err os.Error) { | 15 func FileConn(f *os.File) (c Conn, err error) { |
16 return nil, os.EPLAN9 | 16 return nil, os.EPLAN9 |
17 } | 17 } |
18 | 18 |
19 // FileListener returns a copy of the network listener corresponding | 19 // FileListener returns a copy of the network listener corresponding |
20 // to the open file f. It is the caller's responsibility to close l | 20 // to the open file f. It is the caller's responsibility to close l |
21 // when finished. Closing c does not affect l, and closing l does not | 21 // when finished. Closing c does not affect l, and closing l does not |
22 // affect c. | 22 // affect c. |
23 func FileListener(f *os.File) (l Listener, err os.Error) { | 23 func FileListener(f *os.File) (l Listener, err error) { |
24 return nil, os.EPLAN9 | 24 return nil, os.EPLAN9 |
25 } | 25 } |
26 | 26 |
27 // FilePacketConn returns a copy of the packet network connection | 27 // FilePacketConn returns a copy of the packet network connection |
28 // corresponding to the open file f. It is the caller's | 28 // corresponding to the open file f. It is the caller's |
29 // responsibility to close f when finished. Closing c does not affect | 29 // responsibility to close f when finished. Closing c does not affect |
30 // f, and closing f does not affect c. | 30 // f, and closing f does not affect c. |
31 func FilePacketConn(f *os.File) (c PacketConn, err os.Error) { | 31 func FilePacketConn(f *os.File) (c PacketConn, err error) { |
32 return nil, os.EPLAN9 | 32 return nil, os.EPLAN9 |
33 } | 33 } |
LEFT | RIGHT |