go-smpp icon indicating copy to clipboard operation
go-smpp copied to clipboard

SMPP server.

Open vagruchi opened this issue 9 years ago • 4 comments

There are realization in this repository Maybe you can use this.

vagruchi avatar Apr 26 '16 13:04 vagruchi

Nice, but I think we should keep the smpptest server separate from the smpp/server.go resembling the architecture of net/http. Plus the real server authentication must be slightly different from the smpptest one, and the smpp/server.go should not have default users or any handlers, just the API to glue it together.

fiorix avatar Apr 26 '16 14:04 fiorix

I agree on not having default users/config. Is it necessary to also have smpptest if smpp/server.go can serve as a mocking endpoint? What do you mean but only the API? Wouldn't it need the logic of the server as handlers to serve the PDUs?

cesarrodrig avatar Apr 29 '16 11:04 cesarrodrig

I think the types of control and functionality you'd want from the smpptest server is very different from a production server, hence the mention of net/http and net/http/httptest.

The one thing we could consider in this server, though, is the ability to have a default listener that supports graceful shutdown, if none of the http ones would serve for us - I think they might, can't recall the details.

fiorix avatar May 09 '16 00:05 fiorix

As for the handlers, sure. All we need is a ServeMux type that can be used by both smpp and smpptest.

fiorix avatar May 09 '16 00:05 fiorix