After the week I've had, I deserve to make a commit like this lmao
This commit is contained in:
@@ -6,7 +6,7 @@ import "context"
|
||||
// Conn is a HOPP connection.
|
||||
type Conn interface {
|
||||
io.Closer
|
||||
OpenTrans(ctx context.Context) (Trans, error)
|
||||
OpenTrans() (Trans, error)
|
||||
AcceptTrans(ctx context.Context) (Trans, error)
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@ type Conn interface {
|
||||
type Trans interface {
|
||||
io.Closer
|
||||
ID() int64
|
||||
Send(ctx context.Context, method uint16, data []byte) error
|
||||
Receive(ctx context.Context) (method uint16, data []byte, err error)
|
||||
SendDatagram(ctx context.Context, method uint16, data []byte) error
|
||||
ReceiveDatagram(ctx context.Context) (method uint16, data []byte, err error)
|
||||
// Send sends a message.
|
||||
Send(method uint16, data []byte) error
|
||||
// Receive receives a message.
|
||||
Receive() (method uint16, data []byte, err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user