Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/net/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ func (c *conn) ok() bool { return c != nil && c.fd != nil }

// Implementation of the Conn interface.

//Return sysfd for further use,like: syscall.SetsockoptTimeval
func (c *conn) GetSysfd() int {
return c.fd.pfd.Sysfd
}

// Read implements the Conn Read method.
func (c *conn) Read(b []byte) (int, error) {
if !c.ok() {
Expand Down