bbox: github.com/foril/bbox Index | Files | Directories

package bbox

import "github.com/foril/bbox"

Index

Package Files

bbox.go const.go packet.go types.go

Constants

const (
    Mo  = iota
    Mt_reply
    Mt_push
    Report_mo
    Report_mt
)

Message

const (
    Success = iota
    Failed
    Failed_tmp
    Buffered
)

Ack

const (
    Coding_7BIT = iota
    Coding_8BIT
    Coding_UCS2
)

Coding

type Ack Uses

type Ack struct {
    Nack INTEGER
    Time INTEGER
    Id   UUID
}

type Admin Uses

type Admin struct {
    Command INTEGER
    Boxc_id OCTSTR
}

type Bearerbox Uses

type Bearerbox struct {
    Addr  string
    BoxID string
    // contains filtered or unexported fields
}

Create a Bearerbox client Addr 127.0.0.1:13001 BoxId kannel smsbox-id

func (*Bearerbox) Close Uses

func (c *Bearerbox) Close() error

Close the current client connection

func (*Bearerbox) Connect Uses

func (b *Bearerbox) Connect() error

Connect the client to the Bearerbox

func (*Bearerbox) Read Uses

func (c *Bearerbox) Read() (interface{}, error)

Read message from the Bearerbox

func (*Bearerbox) Write Uses

func (c *Bearerbox) Write(m interface{}) error

Write message to the Bearerbox

type Heartbeat Uses

type Heartbeat struct {
    Load INTEGER
}

type INTEGER Uses

type INTEGER int32
const (
    Shutdown INTEGER = iota
    Suspend
    Resume
    Identify
    Restart
)

Admin command

func (INTEGER) INTEGER Uses

func (i INTEGER) INTEGER() []byte

type OCTSTR Uses

type OCTSTR string

func (OCTSTR) OCTSTR Uses

func (o OCTSTR) OCTSTR() []byte

type Sms Uses

type Sms struct {
    Sender      OCTSTR
    Receiver    OCTSTR
    Udhdata     OCTSTR
    Msgdata     OCTSTR
    Time        INTEGER
    Smsc_id     OCTSTR
    Smsc_number OCTSTR
    Foreign_id  OCTSTR
    Service     OCTSTR
    Account     OCTSTR // Max length 64
    Id          UUID
    Sms_type    INTEGER
    Mclass      INTEGER
    Mwi         INTEGER
    Coding      INTEGER
    Compress    INTEGER
    Validity    INTEGER
    Deferred    INTEGER
    Dlr_mask    INTEGER
    Dlr_url     OCTSTR
    Pid         INTEGER
    Alt_dcs     INTEGER
    Rpi         INTEGER
    Charset     OCTSTR
    Boxc_id     OCTSTR
    Binfo       OCTSTR
    Msg_left    INTEGER
    Split_parts VOID // VOID
    Priority    INTEGER
    Resend_try  INTEGER
    Resend_time INTEGER
    Meta_data   OCTSTR
}

type UUID Uses

type UUID string

func (UUID) UUID Uses

func (u UUID) UUID() []byte

type VOID Uses

type VOID string

type Wdp_datagram Uses

type Wdp_datagram struct {
    Source_address      OCTSTR
    Source_port         INTEGER
    Destination_address OCTSTR
    Destination_port    INTEGER
    User_data           OCTSTR
}

Directories

PathSynopsis
samples

Package bbox imports 8 packages (graph) and is imported by 1 packages. Updated 2018-02-13. Refresh now. Tools for package owners.