Skip to main content

outbind/
outbind.rs

1use smpp_codec::pdus::OutbindRequest;
2
3fn main() {
4    println!("=== SMPP Outbind Example ===");
5
6    // 1. Create Outbind Request
7    // Outbind is sent by the MC to the ESME to request the ESME to bind.
8    let outbind = OutbindRequest::new(
9        100, // Sequence Number
10        "system_id".to_string(),
11        "password".to_string(),
12    );
13
14    println!("Outbind Request: {:?}", outbind);
15
16    // 2. Encode
17    let mut buffer = Vec::new();
18    outbind.encode(&mut buffer).unwrap();
19    println!("Encoded {} bytes", buffer.len());
20}