github.com/megatontech/mynoteforgo@v0.0.0-20200507084910-5d0c6ea6e890/源码/net/unixsock_plan9.go (about)

     1  // Copyright 2009 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  	"context"
     9  	"os"
    10  	"syscall"
    11  )
    12  
    13  func (c *UnixConn) readFrom(b []byte) (int, *UnixAddr, error) {
    14  	return 0, nil, syscall.EPLAN9
    15  }
    16  
    17  func (c *UnixConn) readMsg(b, oob []byte) (n, oobn, flags int, addr *UnixAddr, err error) {
    18  	return 0, 0, 0, nil, syscall.EPLAN9
    19  }
    20  
    21  func (c *UnixConn) writeTo(b []byte, addr *UnixAddr) (int, error) {
    22  	return 0, syscall.EPLAN9
    23  }
    24  
    25  func (c *UnixConn) writeMsg(b, oob []byte, addr *UnixAddr) (n, oobn int, err error) {
    26  	return 0, 0, syscall.EPLAN9
    27  }
    28  
    29  func (sd *sysDialer) dialUnix(ctx context.Context, laddr, raddr *UnixAddr) (*UnixConn, error) {
    30  	return nil, syscall.EPLAN9
    31  }
    32  
    33  func (ln *UnixListener) accept() (*UnixConn, error) {
    34  	return nil, syscall.EPLAN9
    35  }
    36  
    37  func (ln *UnixListener) close() error {
    38  	return syscall.EPLAN9
    39  }
    40  
    41  func (ln *UnixListener) file() (*os.File, error) {
    42  	return nil, syscall.EPLAN9
    43  }
    44  
    45  func (sl *sysListener) listenUnix(ctx context.Context, laddr *UnixAddr) (*UnixListener, error) {
    46  	return nil, syscall.EPLAN9
    47  }
    48  
    49  func (sl *sysListener) listenUnixgram(ctx context.Context, laddr *UnixAddr) (*UnixConn, error) {
    50  	return nil, syscall.EPLAN9
    51  }