Package opensmtpd implements OpenSMTPD-extras in Go
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
198B

  1. package opensmtpd
  2. import (
  3. "net"
  4. "os"
  5. )
  6. // newConn wraps a file descriptor to a net.FileConn
  7. func newConn(fd int) (net.Conn, error) {
  8. f := os.NewFile(uintptr(fd), "")
  9. return net.FileConn(f)
  10. }