Hi ,
 
This is my ASN sequence in MAP_MS_DataTypes module.
 
V3SendAuthenticationInfoArg ::= SEQUENCE {
        imsi                    [0] IMSI,
        numberOfRequestedVectors        NumberOfRequestedVectors        OPTIONAL,
        segmentationProhibited  NULL                    OPTIONAL,
        immediateResponsePreferred      [1] NULL                        OPTIONAL,
        re-synchronisationInfo  Re-synchronisationInfo  OPTIONAL,
        extensionContainer      [2] ExtensionContainer  OPTIONAL,
        ...}
 
Below is my application program.
 
int main ()
{
   
    MAP_MS_DataTypes_Control ctl;
   
    V3SendAuthenticationInfoArg_PDU pdu;   
    V3SendAuthenticationInfoArg_PDU pduDecoded;  
   
   
    ctl.setEncodingFlags(DEBUGPDU);
    ctl.setDecodingFlags(DEBUGPDU);

    EncodedBuffer encodedData;
    EncodedBuffer tempEncodedData;  

    V3SendAuthenticationInfoArg saiArg;
     saiArg.set_imsi(V3SendAuthenticationInfoArg::imsi("3455"));
     saiArg.set_numberOfRequestedVectors(V3SendAuthenticationInfoArg::numberOfRequestedVectors(5));
   
    pdu.set_data(saiArg);
    pdu.encode(ctl, encodedData)
//Here i want to transfer the data in encodedData object to tempEncodedData and try to
//decode the data in tempEncodedData object
//as shown below .Please any one send me the code how to do this
 
    pduDecoded.decode(ctl, tempEncodedData);
    V3SendAuthenticationInfoArg sai2 = *pduDecoded.get_data();
    pduDecoded.print(ctl);
    return 0;
}
 
 
Regards,
Venkat

Yahoo! India Matrimony: Find your life partner online.

_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to