Skip to content

Commit

Permalink
chore: Update module version to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra committed Apr 7, 2024
1 parent cde307e commit d5df60e
Show file tree
Hide file tree
Showing 26 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ package main
import (
"fmt"

"github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion account.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package nex

import "github.com/PretendoNetwork/nex-go/types"
import "github.com/PretendoNetwork/nex-go/v2/types"

// Account represents a game server account.
//
Expand Down
2 changes: 1 addition & 1 deletion byte_stream_out.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package nex

import (
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
crunch "github.com/superwhiskers/crunch/v3"
)

Expand Down
2 changes: 1 addition & 1 deletion connection_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package nex
import (
"net"

"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// ConnectionInterface defines all the methods a connection should have regardless of server type
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/PretendoNetwork/nex-go
module github.com/PretendoNetwork/nex-go/v2

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion hpp_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package nex
import (
"net"

"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// HPPClient represents a single HPP client
Expand Down
2 changes: 1 addition & 1 deletion hpp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"strconv"

"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// HPPServer represents a bare-bones HPP server
Expand Down
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package nex

import (
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/plogger-go"
)

Expand Down
2 changes: 1 addition & 1 deletion kerberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"errors"
"fmt"

"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// KerberosEncryption is a struct representing a Kerberos encryption utility
Expand Down
4 changes: 2 additions & 2 deletions prudp_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net"
"time"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/constants"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// PRUDPConnection implements an individual PRUDP virtual connection.
Expand Down
4 changes: 2 additions & 2 deletions prudp_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"slices"
"time"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/constants"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// PRUDPEndPoint is an implementation of rdv::PRUDPEndPoint.
Expand Down
2 changes: 1 addition & 1 deletion prudp_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package nex
import (
"crypto/rc4"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/v2/constants"
)

// PRUDPPacket holds all the fields each packet should have in all PRUDP versions
Expand Down
2 changes: 1 addition & 1 deletion prudp_packet_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package nex
import (
"net"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/v2/constants"
)

// PRUDPPacketInterface defines all the methods a PRUDP packet should have
Expand Down
2 changes: 1 addition & 1 deletion prudp_packet_lite.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"net"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/v2/constants"
)

// PRUDPPacketLite represents a PRUDPLite packet
Expand Down
2 changes: 1 addition & 1 deletion prudp_packet_v0.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net"
"slices"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/v2/constants"
)

// PRUDPPacketV0 represents a PRUDPv0 packet
Expand Down
2 changes: 1 addition & 1 deletion prudp_packet_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"net"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/v2/constants"
)

// PRUDPPacketV1 represents a PRUDPv1 packet
Expand Down
2 changes: 1 addition & 1 deletion prudp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"runtime"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/v2/constants"
"github.com/lxzan/gws"
)

Expand Down
2 changes: 1 addition & 1 deletion rmc_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// RMCMessage represents a message in the RMC (Remote Method Call) protocol
Expand Down
4 changes: 2 additions & 2 deletions stream_settings.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package nex

import (
"github.com/PretendoNetwork/nex-go/compression"
"github.com/PretendoNetwork/nex-go/encryption"
"github.com/PretendoNetwork/nex-go/v2/compression"
"github.com/PretendoNetwork/nex-go/v2/encryption"
)

// StreamSettings is an implementation of rdv::StreamSettings.
Expand Down
6 changes: 3 additions & 3 deletions test/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package main
import (
"fmt"

"github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/constants"
"github.com/PretendoNetwork/nex-go/v2/types"
)

var authServer *nex.PRUDPServer
Expand Down
4 changes: 2 additions & 2 deletions test/generate_ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"crypto/rand"

"github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
)

func generateTicket(source *nex.Account, target *nex.Account, sessionKeyLength int) []byte {
Expand Down
4 changes: 2 additions & 2 deletions test/hpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

"github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
)

var hppServer *nex.HPPServer
Expand Down
4 changes: 2 additions & 2 deletions test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"sync"

"github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
)

var wg sync.WaitGroup
Expand Down
6 changes: 3 additions & 3 deletions test/secure.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"net"

"github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/constants"
"github.com/PretendoNetwork/nex-go/v2/types"
)

var secureServer *nex.PRUDPServer
Expand Down
2 changes: 1 addition & 1 deletion types/station_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/PretendoNetwork/nex-go/constants"
"github.com/PretendoNetwork/nex-go/v2/constants"
)

// StationURL is an implementation of rdv::StationURL.
Expand Down
2 changes: 1 addition & 1 deletion virtual_port.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package nex

import "github.com/PretendoNetwork/nex-go/constants"
import "github.com/PretendoNetwork/nex-go/v2/constants"

// VirtualPort in an implementation of rdv::VirtualPort.
// PRUDP will reuse a single physical socket connection for many virtual PRUDP connections.
Expand Down

0 comments on commit d5df60e

Please sign in to comment.