Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
add deadline setters to match net package
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Nov 7, 2016
1 parent bf8b22a commit f657968
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package net
import (
"context"
"io"
"time"

"github.com/jbenet/goprocess"
iconn "github.com/libp2p/go-libp2p-interface-conn"
Expand All @@ -27,6 +28,10 @@ type Stream interface {
io.Writer
io.Closer

SetDeadline(t time.Time) error
SetReadDeadline(t time.Time) error
SetWriteDeadline(t time.Time) error

Protocol() protocol.ID
SetProtocol(protocol.ID)

Expand Down

0 comments on commit f657968

Please sign in to comment.