mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
rename the connection to rawConn
This commit is contained in:
parent
3126062aa7
commit
d7ad1b6b9b
7 changed files with 20 additions and 20 deletions
|
@ -13,7 +13,7 @@ type sendConn interface {
|
|||
}
|
||||
|
||||
type sconn struct {
|
||||
connection
|
||||
rawConn
|
||||
|
||||
remoteAddr net.Addr
|
||||
info *packetInfo
|
||||
|
@ -22,9 +22,9 @@ type sconn struct {
|
|||
|
||||
var _ sendConn = &sconn{}
|
||||
|
||||
func newSendConn(c connection, remote net.Addr, info *packetInfo) sendConn {
|
||||
func newSendConn(c rawConn, remote net.Addr, info *packetInfo) sendConn {
|
||||
return &sconn{
|
||||
connection: c,
|
||||
rawConn: c,
|
||||
remoteAddr: remote,
|
||||
info: info,
|
||||
oob: info.OOB(),
|
||||
|
@ -41,7 +41,7 @@ func (c *sconn) RemoteAddr() net.Addr {
|
|||
}
|
||||
|
||||
func (c *sconn) LocalAddr() net.Addr {
|
||||
addr := c.connection.LocalAddr()
|
||||
addr := c.rawConn.LocalAddr()
|
||||
if c.info != nil {
|
||||
if udpAddr, ok := addr.(*net.UDPAddr); ok {
|
||||
addrCopy := *udpAddr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue