Closed Zensey closed 7 years ago
Oh, I have found the way:
go func() {
for {
select {
case conn_st := <-conn_st_ch:
c.bound = conn_st.Status() == smpp.Connected
log.Println("bound>", c.bound, c.id)
}
}
}()
Cool :)
Let me know if you still need any help and I'm happy to reopen this.
I want to restrict Send() of message during reconnects. If Bind_tranciever coincide with Submit_sm it causes Bind to fail -- SMSC does not answer on Bind.