Documentation
¶
Index ¶
- Variables
- func ServeTCP(address string, handler Handler, config *tls.Config) (err error)
- type Handler
- type HandlerFunc
- type Session
- func (c *Session) Close(ctx context.Context) (err error)
- func (c *Session) EnquireLink(ctx context.Context, tick time.Duration, timeout time.Duration) (err error)
- func (c *Session) PDU() <-chan any
- func (c *Session) Send(packet any) (err error)
- func (c *Session) Submit(ctx context.Context, packet pdu.Responsable) (resp any, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConnectionClosed = errors.New("smpp: connection closed")
)
Functions ¶
Types ¶
type HandlerFunc ¶
type HandlerFunc func(*Session)
func (HandlerFunc) Serve ¶
func (h HandlerFunc) Serve(session *Session)
Click to show internal directories.
Click to hide internal directories.