Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RawWrite (0.18 sec)

  1. src/os/rawconn.go

    	runtime.KeepAlive(c.file)
    	return err
    }
    
    func (c *rawConn) Write(f func(uintptr) bool) error {
    	if err := c.file.checkValid("SyscallConn.Write"); err != nil {
    		return err
    	}
    	err := c.file.pfd.RawWrite(f)
    	runtime.KeepAlive(c.file)
    	return err
    }
    
    func newRawConn(file *File) (*rawConn, error) {
    	return &rawConn{file: file}, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 993 bytes
    - Viewed (0)
  2. src/net/rawconn.go

    	}
    	return err
    }
    
    func (c *rawConn) Write(f func(uintptr) bool) error {
    	if !c.ok() {
    		return syscall.EINVAL
    	}
    	err := c.fd.pfd.RawWrite(f)
    	runtime.KeepAlive(c.fd)
    	if err != nil {
    		err = &OpError{Op: "raw-write", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/internal/poll/fd_plan9.go

    }
    
    // RawRead invokes the user-defined function f for a read operation.
    func (fd *FD) RawRead(f func(uintptr) bool) error {
    	return errors.New("not implemented")
    }
    
    // RawWrite invokes the user-defined function f for a write operation.
    func (fd *FD) RawWrite(f func(uintptr) bool) error {
    	return errors.New("not implemented")
    }
    
    func DupCloseOnExec(fd int) (int, string, error) {
    	nfd, err := syscall.Dup(int(fd), -1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/internal/poll/fd_unix.go

    	}
    	for {
    		if f(uintptr(fd.Sysfd)) {
    			return nil
    		}
    		if err := fd.pd.waitRead(fd.isFile); err != nil {
    			return err
    		}
    	}
    }
    
    // RawWrite invokes the user-defined function f for a write operation.
    func (fd *FD) RawWrite(f func(uintptr) bool) error {
    	if err := fd.writeLock(); err != nil {
    		return err
    	}
    	defer fd.writeUnlock()
    	if err := fd.pd.prepareWrite(fd.isFile); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. src/internal/poll/fd_windows.go

    		})
    		if err == windows.WSAEMSGSIZE {
    			// expected with a 0-byte peek, ignore.
    		} else if err != nil {
    			return err
    		}
    	}
    }
    
    // RawWrite invokes the user-defined function f for a write operation.
    func (fd *FD) RawWrite(f func(uintptr) bool) error {
    	if err := fd.writeLock(); err != nil {
    		return err
    	}
    	defer fd.writeUnlock()
    
    	if f(uintptr(fd.Sysfd)) {
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top