mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Replace references of ConnectableEndpoint with BoundEndpoint.
PiperOrigin-RevId: 408366542
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user