Closed vagruchi closed 8 years ago
smpptest is a package for testing only, you want to have control over things. We can't simply use net.Conn because we want buffered connections, like many other packages including net/http. The conn object holds a buffered reader and writer, and other things.
Why we have 2 different Conn interfaces(smpptest.Conn and smpp.Conn). And why we can't use simple net.Conn?