1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 // FileConn returns a copy of the network connection corresponding to
13 // the open file f. It is the caller's responsibility to close f when
14 // finished. Closing c does not affect f, and closing f does not
16 func FileConn(f
*os
.File
) (c Conn
, err error
) {
17 // TODO: Implement this
18 return nil, os
.NewSyscallError("FileConn", syscall
.EWINDOWS
)
21 // FileListener returns a copy of the network listener corresponding
22 // to the open file f. It is the caller's responsibility to close l
23 // when finished. Closing l does not affect f, and closing f does not
25 func FileListener(f
*os
.File
) (l Listener
, err error
) {
26 // TODO: Implement this
27 return nil, os
.NewSyscallError("FileListener", syscall
.EWINDOWS
)
30 // FilePacketConn returns a copy of the packet network connection
31 // corresponding to the open file f. It is the caller's
32 // responsibility to close f when finished. Closing c does not affect
33 // f, and closing f does not affect c.
34 func FilePacketConn(f
*os
.File
) (c PacketConn
, err error
) {
35 // TODO: Implement this
36 return nil, os
.NewSyscallError("FilePacketConn", syscall
.EWINDOWS
)