1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

Fix receivced, InboundBound, tranport, Enpoint typo

This commit is contained in:
Jinqiu Yu 2018-03-11 14:43:20 +08:00
parent 649119493b
commit 87dd1ed877
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ func (d Destination) IsValid() bool {
return d.Network != Network_Unknown
}
// AsDestination converts current Enpoint into Destination.
// AsDestination converts current Endpoint into Destination.
func (p *Endpoint) AsDestination() Destination {
return Destination{
Network: p.Network,

View File

@ -13,7 +13,7 @@ type OutboundRay interface {
// OutboundOutput provides a stream to retrieve the response from the
// outbound connection. The outbound connection shall close the channel
// after all responses are receivced and put into the channel.
// after all responses are received and put into the channel.
OutboundOutput() OutputStream
}
@ -24,13 +24,13 @@ type InboundRay interface {
// is received and put into the channel.
InboundInput() OutputStream
// InboudBound provides a stream of data for the inbound connection to write
// InboundOutput provides a stream of data for the inbound connection to write
// as response. The inbound connection shall write all the data from the
// channel until it is closed.
InboundOutput() InputStream
}
// Ray is an internal tranport channel between inbound and outbound connection.
// Ray is an internal transport channel between inbound and outbound connection.
type Ray interface {
InboundRay
OutboundRay