Files
smpp-tester/pdu/bind.go
PhatPhuckDave f30680c26f
Some checks failed
Benchmark BufferPool / RunBenchmarks (push) Failing after 17s
Run Tests / Test (push) Failing after 15s
Rework every uint8 to byte and rework every []byte to bytes.Buffer
I just learnt that uint8 and byte are the fucking same
And that bytes.Buffer is the thing to use
Idiot idiot idiot...
Live and learn
2024-07-24 18:48:12 +02:00

45 lines
732 B
Go

package pdu
type (
BIND struct {
header PDU_HEADER
system_id string
password string
system_type string
interface_version byte
addr_ton byte
addr_npi byte
address_range string
}
BIND_RESP struct {
header PDU_HEADER
system_id string
sc_interface_version byte
}
BIND_RECVEIVER struct {
BIND
}
BIND_RECEIVER_RESP struct {
BIND_RESP
}
BIND_TRANSMITTER struct {
BIND
}
BIND_TRANSMITTER_RESP struct {
BIND_RESP
}
BIND_TRANSCIEVER struct {
BIND
}
BIND_TRANSCIEVER_RESP struct {
BIND_RESP
}
UNBIND struct {
PDU_HEADER
}
UNBIND_RESP struct {
PDU_HEADER
}
)