smpp-codec 0.2.1

A comprehensive SMPP v5 protocol codec for Rust.
Documentation
use smpp_codec::pdus::OutbindRequest;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    println!("=== SMPP Outbind Example ===");

    // 1. Create Outbind Request
    // Outbind is sent by the MC to the ESME to request the ESME to bind.
    let outbind = OutbindRequest::new(
        100, // Sequence Number
        "system_id".to_string(),
        "password".to_string(),
    );

    println!("Outbind Request: {:?}", outbind);

    // 2. Encode
    let mut buffer = Vec::new();
    outbind.encode(&mut buffer)?;
    println!("Encoded {} bytes", buffer.len());
    Ok(())
}