github.com/guyezi/gofrontend@v0.0.0-20200228202240-7a62a49e62c0/libgo/go/net/iprawsock_plan9.go (about) 1 // Copyright 2010 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 "syscall" 10 ) 11 12 func (c *IPConn) readFrom(b []byte) (int, *IPAddr, error) { 13 return 0, nil, syscall.EPLAN9 14 } 15 16 func (c *IPConn) readMsg(b, oob []byte) (n, oobn, flags int, addr *IPAddr, err error) { 17 return 0, 0, 0, nil, syscall.EPLAN9 18 } 19 20 func (c *IPConn) writeTo(b []byte, addr *IPAddr) (int, error) { 21 return 0, syscall.EPLAN9 22 } 23 24 func (c *IPConn) writeMsg(b, oob []byte, addr *IPAddr) (n, oobn int, err error) { 25 return 0, 0, syscall.EPLAN9 26 } 27 28 func (sd *sysDialer) dialIP(ctx context.Context, laddr, raddr *IPAddr) (*IPConn, error) { 29 return nil, syscall.EPLAN9 30 } 31 32 func (sl *sysListener) listenIP(ctx context.Context, laddr *IPAddr) (*IPConn, error) { 33 return nil, syscall.EPLAN9 34 }