Beispiel #1
0
 private void PolicyRequest()
 {
     _connection.SendData(RocketEmulador.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(RocketEmulador.GetDefaultEncoding().GetString(ReadFixedValue()));
 }
 public override string ToString()
 {
     return("[" + Header + "] BODY: " + (RocketEmulador.GetDefaultEncoding().GetString(Body).Replace(Convert.ToChar(0).ToString(), "[0]")));
 }