Skip to content

Commit 3cc80f6

Browse files
committed
mpsquic is now nesquic
1 parent af8ab2c commit 3cc80f6

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

_examples/boingboing/boingboing.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import (
4141

4242
"github.com/netsec-ethz/scion-apps/pkg/appnet"
4343
"github.com/netsec-ethz/scion-apps/pkg/appnet/appquic"
44-
"github.com/netsec-ethz/scion-apps/pkg/mpsquic"
44+
"github.com/netsec-ethz/scion-apps/pkg/nesquic"
4545
)
4646

4747
const (
@@ -219,11 +219,11 @@ func (c *client) run(remote *snet.UDPAddr, paths []snet.Path) {
219219
}
220220
var err error
221221
if remote.IA == appnet.DefNetwork().IA {
222-
// XXX(matzf) mpsquic does not properly handle destination in same AS. Too many places assume
222+
// XXX(matzf) nesquic does not properly handle destination in same AS. Too many places assume
223223
// an existing path. Easy fallback, use normal appquic.
224224
c.qsess, err = appquic.DialAddr(remote, "host:0", tlsConf, quicConf)
225225
} else {
226-
c.qsess, err = mpsquic.Dial(remote, "host:0", paths, tlsConf, quicConf)
226+
c.qsess, err = nesquic.Dial(remote, "host:0", paths, tlsConf, quicConf)
227227
}
228228
if err != nil {
229229
LogFatal("Unable to dial", "err", err)
@@ -336,7 +336,7 @@ type server struct {
336336
// On any error, the server exits.
337337
func (s server) run() {
338338
// Listen on SCION address
339-
qsock, err := mpsquic.ListenPort(
339+
qsock, err := nesquic.ListenPort(
340340
uint16(*port),
341341
&tls.Config{
342342
Certificates: appquic.GetDummyTLSCerts(),

pkg/mpsquic/flex_conn.go renamed to pkg/nesquic/flex_conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package mpsquic
15+
package nesquic
1616

1717
import (
1818
"net"

pkg/mpsquic/log.go renamed to pkg/nesquic/log.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package mpsquic
15+
package nesquic
1616

1717
import (
1818
"fmt"
@@ -40,7 +40,7 @@ func init() {
4040
initLogging(log.Root())
4141
}
4242

43-
// initLogging initializes logging for the mpsquic library using the passed scionproto (or similar) logger
43+
// initLogging initializes logging for the nesquic library using the passed scionproto (or similar) logger
4444
func initLogging(baseLogger log.Logger) {
4545
logger = &Logger{}
4646
logger.Trace = func(msg string, ctx ...interface{}) { baseLogger.Trace("MSQUIC: "+msg, ctx...) }
@@ -51,7 +51,7 @@ func initLogging(baseLogger log.Logger) {
5151
logger.Crit = func(msg string, ctx ...interface{}) { baseLogger.Crit("MSQUIC: "+msg, ctx...) }
5252
}
5353

54-
// SetBasicLogging sets mpsquic logging to only write to os.Stdout and os.Stderr
54+
// SetBasicLogging sets nesquic logging to only write to os.Stdout and os.Stderr
5555
func SetBasicLogging() {
5656
if logger != nil {
5757
logger.Trace = func(msg string, ctx ...interface{}) { _, _ = fmt.Fprintf(os.Stdout, "%v\t%v", msg, ctx) }

pkg/mpsquic/monitor.go renamed to pkg/nesquic/monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package mpsquic
1+
package nesquic
22

33
import (
44
"math/rand"

pkg/mpsquic/mpsquic.go renamed to pkg/nesquic/nesquic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// Package mpsquic is a prototype implementation for a QUIC/SCION "socket" with
15+
// Package nesquic is a prototype implementation for a QUIC/SCION "socket" with
1616
// automatic, performance aware path choice.
1717
//
1818
// The most important design decision/constraint for this package is to make
@@ -41,7 +41,7 @@
4141
// The monitor reevaluates the path choice at regular time intervals, or when
4242
// the probing observes drastic changes (currently: revocation or timeout for
4343
// active path).
44-
package mpsquic
44+
package nesquic
4545

4646
import (
4747
"context"

pkg/mpsquic/pinger.go renamed to pkg/nesquic/pinger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package mpsquic
15+
package nesquic
1616

1717
import (
1818
"context"

pkg/mpsquic/policy.go renamed to pkg/nesquic/policy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package mpsquic
15+
package nesquic
1616

1717
import (
1818
"time"

pkg/mpsquic/revocations.go renamed to pkg/nesquic/revocations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package mpsquic
1+
package nesquic
22

33
import (
44
"context"

pkg/mpsquic/server.go renamed to pkg/nesquic/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package mpsquic
15+
package nesquic
1616

1717
import (
1818
"crypto/tls"

0 commit comments

Comments
 (0)