fiorix / go-smpp

SMPP 3.4 Protocol for the Go programming language
MIT License
220 stars 134 forks source link

Standart Conn interface. #17

Closed vagruchi closed 8 years ago

vagruchi commented 8 years ago

Why we have 2 different Conn interfaces(smpptest.Conn and smpp.Conn). And why we can't use simple net.Conn?

fiorix commented 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.