github.com/ader1990/go@v0.0.0-20140630135419-8c24447fa791/src/pkg/net/file_windows.go (about) 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. 4 5 package net 6 7 import ( 8 "os" 9 "syscall" 10 ) 11 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 15 // affect c. 16 func FileConn(f *os.File) (c Conn, err error) { 17 // TODO: Implement this 18 return nil, os.NewSyscallError("FileConn", syscall.EWINDOWS) 19 } 20 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 24 // affect l. 25 func FileListener(f *os.File) (l Listener, err error) { 26 // TODO: Implement this 27 return nil, os.NewSyscallError("FileListener", syscall.EWINDOWS) 28 } 29 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) 37 }