2016-03-01 15:57:46 -07:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
2011-08-17 11:28:29 -06:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package net
|
|
|
|
|
|
|
|
import (
|
2012-09-26 01:11:49 -06:00
|
|
|
"os"
|
2012-02-16 18:59:30 -07:00
|
|
|
"syscall"
|
2012-01-18 20:25:37 -07:00
|
|
|
"time"
|
2011-08-17 11:28:29 -06:00
|
|
|
)
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func (c *UnixConn) readFrom(b []byte) (int, *UnixAddr, error) {
|
|
|
|
return 0, nil, syscall.EPLAN9
|
2012-09-26 01:11:49 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func (c *UnixConn) readMsg(b, oob []byte) (n, oobn, flags int, addr *UnixAddr, err error) {
|
|
|
|
return 0, 0, 0, nil, syscall.EPLAN9
|
2012-09-26 01:11:49 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func (c *UnixConn) writeTo(b []byte, addr *UnixAddr) (int, error) {
|
|
|
|
return 0, syscall.EPLAN9
|
2012-09-26 01:11:49 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func (c *UnixConn) writeMsg(b, oob []byte, addr *UnixAddr) (n, oobn int, err error) {
|
|
|
|
return 0, 0, syscall.EPLAN9
|
2012-09-26 01:11:49 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func dialUnix(network string, laddr, raddr *UnixAddr, deadline time.Time) (*UnixConn, error) {
|
|
|
|
return nil, syscall.EPLAN9
|
2011-08-17 11:28:29 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func (ln *UnixListener) accept() (*UnixConn, error) {
|
|
|
|
return nil, syscall.EPLAN9
|
2012-09-26 01:11:49 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func (ln *UnixListener) close() error {
|
|
|
|
return syscall.EPLAN9
|
2011-08-17 11:28:29 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func (ln *UnixListener) file() (*os.File, error) {
|
|
|
|
return nil, syscall.EPLAN9
|
2012-05-29 16:08:58 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func listenUnix(network string, laddr *UnixAddr) (*UnixListener, error) {
|
|
|
|
return nil, syscall.EPLAN9
|
2012-05-29 16:08:58 -06:00
|
|
|
}
|
|
|
|
|
2016-03-02 14:22:11 -07:00
|
|
|
func listenUnixgram(network string, laddr *UnixAddr) (*UnixConn, error) {
|
|
|
|
return nil, syscall.EPLAN9
|
2012-09-26 01:11:49 -06:00
|
|
|
}
|