Esempio n. 1
0
 private void PolicyRequest()
 {
     _connection.SendData(QuasarEnvironment.GetDefaultEncoding().GetBytes("<?xml version=\"1.0\"?>\r\n" +
                                                                          "<!DOCTYPE cross-domain-policy SYSTEM \"/xml/dtds/cross-domain-policy.dtd\">\r\n" +
                                                                          "<cross-domain-policy>\r\n" +
                                                                          "<allow-access-from domain=\"*\" to-ports=\"1-31111\" />\r\n" +
                                                                          "</cross-domain-policy>\x0"));
 }
 public string PopString()
 {
     return(QuasarEnvironment.GetDefaultEncoding().GetString(ReadFixedValue()));
 }
 public override string ToString()
 {
     return("[" + Header + "] BODY: " + (QuasarEnvironment.GetDefaultEncoding().GetString(Body).Replace(Convert.ToChar(0).ToString(), "[0]")));
 }