Skip to content

Survey #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/go-smpp.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
module github.com/fiorix/go-smpp
module github.com/fishparmak/go-smpp

go 1.16
go 1.20

require (
github.com/urfave/cli v1.22.5
golang.org/x/text v0.3.6
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
github.com/fiorix/go-smpp v0.0.0-20210403173735-2894b96e70ba
github.com/urfave/cli v1.22.16
golang.org/x/text v0.21.0
golang.org/x/time v0.8.0
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
)
35 changes: 29 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/cpuguy83/go-md2man/v2 v2.0.5 h1:ZtcqGrnekaHpVLArFSe4HK5DoKx1T0rq2DwVB0alcyc=
github.com/cpuguy83/go-md2man/v2 v2.0.5/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fiorix/go-smpp v0.0.0-20210403173735-2894b96e70ba h1:vBqABUa2HUSc6tj22Tw+ZMVGHuBzKtljM38kbRanmrM=
github.com/fiorix/go-smpp v0.0.0-20210403173735-2894b96e70ba/go.mod h1:VfKFK7fGeCP81xEhbrOqUEh45n73Yy6jaPWwTVbxprI=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/urfave/cli v1.22.5 h1:lNq9sAHXK2qfdI8W+GRItjCEkI+2oR4d+MEHy1CKXoU=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
github.com/urfave/cli v1.22.16 h1:MH0k6uJxdwdeWQTwhSO42Pwr4YLrNLwBtg1MRgTqPdQ=
github.com/urfave/cli v1.22.16/go.mod h1:EeJR6BKodywf4zciqrdw6hpCPk68JO9z5LazXZMn5Po=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba h1:O8mE0/t419eoIwhTFpKVkHiTs/Igowgfkj25AcZrtiE=
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.8.0 h1:9i3RxcPv3PZnitoVGMPDKZSq1xW1gK1Xy3ArNOGZfEg=
golang.org/x/time v0.8.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
5 changes: 2 additions & 3 deletions smpp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ package smpp
import (
"context"
"crypto/tls"
"github.com/fishparmak/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
"io"
"math"
"sync"
"time"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
)

// ConnStatus is an abstract interface for a connection status change.
Expand Down
2 changes: 1 addition & 1 deletion smpp/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"net"
"sync"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions smpp/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ package smpp
import (
"testing"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fiorix/go-smpp/smpp/smpptest"
"github.com/fishparmak/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/smpptest"
)

func TestConn(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions smpp/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (

"golang.org/x/time/rate"

"github.com/fiorix/go-smpp/smpp"
"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fiorix/go-smpp/smpp/pdu/pdutext"
"github.com/fishparmak/go-smpp/smpp"
"github.com/fishparmak/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutext"
)

func ExampleReceiver() {
Expand Down
4 changes: 2 additions & 2 deletions smpp/pdu/body.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package pdu
import (
"io"

"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fiorix/go-smpp/smpp/pdu/pdutlv"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutlv"
)

// MaxSize is the maximum size allowed for a PDU.
Expand Down
4 changes: 2 additions & 2 deletions smpp/pdu/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"io"
"sync/atomic"

"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fiorix/go-smpp/smpp/pdu/pdutlv"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutlv"
)

var nextSeq uint32
Expand Down
2 changes: 1 addition & 1 deletion smpp/pdu/pdufield/map.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package pdufield
import (
"fmt"

"github.com/fiorix/go-smpp/smpp/pdu/pdutext"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutext"
)

// Map is a collection of PDU field data indexed by name.
Expand Down
2 changes: 1 addition & 1 deletion smpp/pdu/pdufield/map_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"bytes"
"testing"

"github.com/fiorix/go-smpp/smpp/pdu/pdutext"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutext"
)

func TestMapSet(t *testing.T) {
Expand Down
30 changes: 15 additions & 15 deletions smpp/pdu/pdutext/gsm7.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@
package pdutext

import (
"golang.org/x/text/transform"
"github.com/fiorix/go-smpp/smpp/encoding"
"github.com/fishparmak/go-smpp/smpp/encoding"
"golang.org/x/text/transform"
)

// GSM 7-bit (unpacked)
type GSM7 []byte

// Type implements the Codec interface.
func (s GSM7) Type() DataCoding {
return DefaultType
return DefaultType
}

// Encode to GSM 7-bit (unpacked)
func (s GSM7) Encode() []byte {
e := encoding.GSM7(false).NewEncoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
e := encoding.GSM7(false).NewEncoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
}

// Decode from GSM 7-bit (unpacked)
func (s GSM7) Decode() []byte {
e := encoding.GSM7(false).NewDecoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
e := encoding.GSM7(false).NewDecoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
}
30 changes: 15 additions & 15 deletions smpp/pdu/pdutext/gsm7packed.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@
package pdutext

import (
"golang.org/x/text/transform"
"github.com/fiorix/go-smpp/smpp/encoding"
"github.com/fishparmak/go-smpp/smpp/encoding"
"golang.org/x/text/transform"
)

// GSM 7-bit (packed)
type GSM7Packed []byte

// Type implements the Codec interface.
func (s GSM7Packed) Type() DataCoding {
return DefaultType
return DefaultType
}

// Encode to GSM 7-bit (packed)
func (s GSM7Packed) Encode() []byte {
e := encoding.GSM7(true).NewEncoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
e := encoding.GSM7(true).NewEncoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
}

// Decode from GSM 7-bit (packed)
func (s GSM7Packed) Decode() []byte {
e := encoding.GSM7(true).NewDecoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
e := encoding.GSM7(true).NewDecoder()
es, _, err := transform.Bytes(e, s)
if err != nil {
return s
}
return es
}
4 changes: 2 additions & 2 deletions smpp/pdu/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
package pdu

import (
"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fiorix/go-smpp/smpp/pdu/pdutlv"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutlv"
)

// PDU Types.
Expand Down
2 changes: 1 addition & 1 deletion smpp/pdu/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"testing"

"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
)

func TestBind(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions smpp/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"sync"
"time"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
)

// Receiver implements an SMPP client receiver.
Expand Down
6 changes: 3 additions & 3 deletions smpp/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fiorix/go-smpp/smpp/smpptest"
"github.com/fishparmak/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/smpptest"
)

func TestReceiver(t *testing.T) {
Expand Down Expand Up @@ -43,4 +43,4 @@ func TestReceiver(t *testing.T) {
case <-time.After(time.Second):
t.Fatal("timeout waiting for server to echo")
}
}
}
2 changes: 1 addition & 1 deletion smpp/smpptest/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"io"
"net"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu"
)

// Conn implements a server side connection.
Expand Down
4 changes: 2 additions & 2 deletions smpp/smpptest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"net"
"sync"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
)

// Default settings.
Expand Down
10 changes: 5 additions & 5 deletions smpp/smpptest/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"net"
"testing"

"github.com/fiorix/go-smpp/smpp/pdu"
"github.com/fiorix/go-smpp/smpp/pdu/pdufield"
"github.com/fiorix/go-smpp/smpp/pdu/pdutext"
"github.com/fiorix/go-smpp/smpp/pdu/pdutlv"
"github.com/fishparmak/go-smpp/smpp/pdu"
"github.com/fishparmak/go-smpp/smpp/pdu/pdufield"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutext"
"github.com/fishparmak/go-smpp/smpp/pdu/pdutlv"
)

func TestServer(t *testing.T) {
Expand Down Expand Up @@ -75,7 +75,7 @@ func TestServer(t *testing.T) {
}
}
// submit_sm + tlv field
p = pdu.NewSubmitSM(pdutlv.Fields{ pdutlv.TagReceiptedMessageID: pdutlv.CString("xyz123") })
p = pdu.NewSubmitSM(pdutlv.Fields{pdutlv.TagReceiptedMessageID: pdutlv.CString("xyz123")})
f = p.Fields()
f.Set(pdufield.SourceAddr, "foobar")
f.Set(pdufield.DestinationAddr, "bozo")
Expand Down
Loading