Replace references of ConnectableEndpoint with BoundEndpoint.

PiperOrigin-RevId: 408366542
This commit is contained in:
Ayush Ranjan
2021-11-08 09:44:38 -08:00
committed by gVisor bot
parent 510bad19b6
commit 55b70552c1
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func sockTypeToP9(t linux.SockType) (p9.ConnectFlags, bool) {
return 0, false
}
// BidirectionalConnect implements ConnectableEndpoint.BidirectionalConnect.
// BidirectionalConnect implements BoundEndpoint.BidirectionalConnect.
func (e *endpoint) BidirectionalConnect(ctx context.Context, ce transport.ConnectingEndpoint, returnConnect func(transport.Receiver, transport.ConnectedEndpoint)) *syserr.Error {
cf, ok := sockTypeToP9(ce.Type())
if !ok {
+1 -1
View File
@@ -58,7 +58,7 @@ func sockTypeToP9(t linux.SockType) (p9.ConnectFlags, bool) {
return 0, false
}
// BidirectionalConnect implements ConnectableEndpoint.BidirectionalConnect.
// BidirectionalConnect implements BoundEndpoint.BidirectionalConnect.
func (e *endpoint) BidirectionalConnect(ctx context.Context, ce transport.ConnectingEndpoint, returnConnect func(transport.Receiver, transport.ConnectedEndpoint)) *syserr.Error {
// No lock ordering required as only the ConnectingEndpoint has a mutex.
ce.Lock()
@@ -44,7 +44,7 @@ type ConnectingEndpoint interface {
// Type returns the socket type, typically either SockStream or
// SockSeqpacket. The connection attempt must be aborted if this
// value doesn't match the ConnectableEndpoint's type.
// value doesn't match the BoundEndpoint's type.
Type() linux.SockType
// GetLocalAddress returns the bound path.
@@ -69,7 +69,7 @@ type ConnectingEndpoint interface {
}
// connectionedEndpoint is a Unix-domain connected or connectable endpoint and implements
// ConnectingEndpoint, ConnectableEndpoint and tcpip.Endpoint.
// ConnectingEndpoint, BoundEndpoint and tcpip.Endpoint.
//
// connectionedEndpoints must be in connected state in order to transfer data.
//