Browse Source

No more github

main
Gitea 2 years ago
parent
commit
b30d0c3465
  1. 2
      src/fsys/file.go
  2. 2
      src/go.mod
  3. 2
      src/main.go
  4. 10
      src/node/node.go
  5. 2
      src/protocol/packet.go
  6. 2
      src/protocol/packetConstruct.go
  7. 2
      src/protocol/packetDecode.go
  8. 4
      src/protocol/send.go

2
src/fsys/file.go

@ -25,7 +25,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/Unbewohnte/ftu/checksum" "unbewohnte.xyz/Unbewohnte/ftu/checksum"
) )
// A struct that represents the necessary file information for transportation through node // A struct that represents the necessary file information for transportation through node

2
src/go.mod

@ -1,3 +1,3 @@
module github.com/Unbewohnte/ftu module unbewohnte.xyz/Unbewohnte/ftu
go 1.17 go 1.17

2
src/main.go

@ -26,7 +26,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/Unbewohnte/ftu/node" "unbewohnte.xyz/Unbewohnte/ftu/node"
) )
var ( var (

10
src/node/node.go

@ -32,11 +32,11 @@ import (
"fmt" "fmt"
"github.com/Unbewohnte/ftu/addr" "unbewohnte.xyz/Unbewohnte/ftu/addr"
"github.com/Unbewohnte/ftu/checksum" "unbewohnte.xyz/Unbewohnte/ftu/checksum"
"github.com/Unbewohnte/ftu/encryption" "unbewohnte.xyz/Unbewohnte/ftu/encryption"
"github.com/Unbewohnte/ftu/fsys" "unbewohnte.xyz/Unbewohnte/ftu/fsys"
"github.com/Unbewohnte/ftu/protocol" "unbewohnte.xyz/Unbewohnte/ftu/protocol"
) )
// netInfowork specific settings // netInfowork specific settings

2
src/protocol/packet.go

@ -31,7 +31,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/Unbewohnte/ftu/encryption" "unbewohnte.xyz/Unbewohnte/ftu/encryption"
) )
// Internal representation of packet before|after the transportation // Internal representation of packet before|after the transportation

2
src/protocol/packetConstruct.go

@ -25,7 +25,7 @@ import (
"bytes" "bytes"
"encoding/binary" "encoding/binary"
"github.com/Unbewohnte/ftu/fsys" "unbewohnte.xyz/Unbewohnte/ftu/fsys"
) )
// constructs a ready to send FILE packet // constructs a ready to send FILE packet

2
src/protocol/packetDecode.go

@ -26,7 +26,7 @@ import (
"encoding/binary" "encoding/binary"
"fmt" "fmt"
"github.com/Unbewohnte/ftu/fsys" "unbewohnte.xyz/Unbewohnte/ftu/fsys"
) )
var ErrorWrongPacket error = fmt.Errorf("wrong type of packet header") var ErrorWrongPacket error = fmt.Errorf("wrong type of packet header")

4
src/protocol/send.go

@ -28,8 +28,8 @@ import (
"io" "io"
"net" "net"
"github.com/Unbewohnte/ftu/encryption" "unbewohnte.xyz/Unbewohnte/ftu/encryption"
"github.com/Unbewohnte/ftu/fsys" "unbewohnte.xyz/Unbewohnte/ftu/fsys"
) )
// Sends given packet to connection. // Sends given packet to connection.

Loading…
Cancel
Save