smpp-codec 0.2.1

A comprehensive SMPP v5 protocol codec for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use smpp_codec::pdus::UnbindRequest;

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

    let unbind_req = UnbindRequest::new(99);
    println!("Unbind Request: {:?}", unbind_req);

    let mut buffer = Vec::new();
    unbind_req.encode(&mut buffer)?;

    println!("Encoded {} bytes", buffer.len());
    Ok(())
}