- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for fileConn (0.13 sec)
-
src/net/file_unix.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 2.5K bytes - Viewed (0) -
src/net/file_plan9.go
} dir := netdir + "/" + comp[1] + "/" + name laddr, err := readPlan9Addr(comp[1], dir+"/local") if err != nil { return nil, err } return newFD(comp[1], name, nil, ctl, nil, laddr, nil) } func fileConn(f *os.File) (Conn, error) { fd, err := newFileFD(f) if err != nil { return nil, err } if !fd.ok() { return nil, syscall.EINVAL } fd.data, err = os.OpenFile(fd.dir+"/data", os.O_RDWR, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 2.8K bytes - Viewed (0) -
src/net/mockserver_test.go
func startTestSocketPeer(t testing.TB, conn Conn, op string, chunkSize, totalSize int) (func(t testing.TB), error) { t.Helper() if runtime.GOOS == "windows" { // TODO(panjf2000): Windows has not yet implemented FileConn, // remove this when it's implemented in https://go.dev/issues/9503. t.Fatalf("startTestSocketPeer is not supported on %s", runtime.GOOS) } f, err := conn.(interface{ File() (*os.File, error) }).File()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 13.3K bytes - Viewed (0) -
src/net/sendfile_test.go
b.Fatalf("expected %d copied bytes, but got %d", dataSize, n) } cancel() } func BenchmarkSendFile(b *testing.B) { if runtime.GOOS == "windows" { // TODO(panjf2000): Windows has not yet implemented FileConn, // remove this when it's implemented in https://go.dev/issues/9503. b.Skipf("skipping on %s", runtime.GOOS) } b.Run("file-to-tcp", func(b *testing.B) { benchmarkSendFile(b, "tcp") })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Dialer.LocalAddr", Field, 1}, {"Dialer.Resolver", Field, 8}, {"Dialer.Timeout", Field, 1}, {"ErrClosed", Var, 16}, {"ErrWriteToConnected", Var, 0}, {"Error", Type, 0}, {"FileConn", Func, 0}, {"FileListener", Func, 0}, {"FilePacketConn", Func, 0}, {"FlagBroadcast", Const, 0}, {"FlagLoopback", Const, 0}, {"FlagMulticast", Const, 0}, {"FlagPointToPoint", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)