diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/Aura Debugger/Aura Debugger.sln b/Aura Debugger/Aura Debugger.sln new file mode 100644 index 0000000..a15f6ff --- /dev/null +++ b/Aura Debugger/Aura Debugger.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2035 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aura Debugger", "Aura Debugger\Aura Debugger.csproj", "{D28D487E-40E5-4DCE-B95D-568727B6E700}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D28D487E-40E5-4DCE-B95D-568727B6E700}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D28D487E-40E5-4DCE-B95D-568727B6E700}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D28D487E-40E5-4DCE-B95D-568727B6E700}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D28D487E-40E5-4DCE-B95D-568727B6E700}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8B64AD10-8111-4E22-A0A4-1D8841D9E5EC} + EndGlobalSection +EndGlobal diff --git a/Aura Debugger/Aura Debugger/App.config b/Aura Debugger/Aura Debugger/App.config new file mode 100644 index 0000000..731f6de --- /dev/null +++ b/Aura Debugger/Aura Debugger/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Aura Debugger/Aura Debugger/Aura Debugger.csproj b/Aura Debugger/Aura Debugger/Aura Debugger.csproj new file mode 100644 index 0000000..728065a --- /dev/null +++ b/Aura Debugger/Aura Debugger/Aura Debugger.csproj @@ -0,0 +1,82 @@ + + + + + Debug + AnyCPU + {D28D487E-40E5-4DCE-B95D-568727B6E700} + WinExe + Aura_Debugger + Aura Debugger + v4.6.1 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/Aura Debugger/Aura Debugger/Form1.Designer.cs b/Aura Debugger/Aura Debugger/Form1.Designer.cs new file mode 100644 index 0000000..83181a2 --- /dev/null +++ b/Aura Debugger/Aura Debugger/Form1.Designer.cs @@ -0,0 +1,86 @@ +namespace Aura_Debugger +{ + partial class Form1 + { + /// + /// Variable nécessaire au concepteur. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Nettoyage des ressources utilisées. + /// + /// true si les ressources managées doivent être supprimées ; sinon, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Code généré par le Concepteur Windows Form + + /// + /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas + /// le contenu de cette méthode avec l'éditeur de code. + /// + private void InitializeComponent() + { + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker(); + this.SuspendLayout(); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(13, 13); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.ReadOnly = true; + this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; + this.textBox1.Size = new System.Drawing.Size(701, 369); + this.textBox1.TabIndex = 0; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 396); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(160, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Waiting at XXX.XXX.X.XX, 4224"; + this.label1.Visible = false; + // + // backgroundWorker1 + // + this.backgroundWorker1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.backgroundWorker1_DoWork); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.White; + this.ClientSize = new System.Drawing.Size(726, 423); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.Name = "Form1"; + this.ShowIcon = false; + this.Text = "Aura Debugger v0.1"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label1; + private System.ComponentModel.BackgroundWorker backgroundWorker1; + } +} + diff --git a/Aura Debugger/Aura Debugger/Form1.cs b/Aura Debugger/Aura Debugger/Form1.cs new file mode 100644 index 0000000..85085a0 --- /dev/null +++ b/Aura Debugger/Aura Debugger/Form1.cs @@ -0,0 +1,78 @@ +/* +* PROJECT: Aura Operating System Development +* CONTENT: Aura's Debugger! +* PROGRAMMERS: Valentin Charbonnier +*/ + +using System; +using System.ComponentModel; +using System.Text; +using System.Windows.Forms; +using System.Net; +using System.Net.Sockets; + +namespace Aura_Debugger +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + + string IP = "XX.XX.XX.XX"; + + using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, 0)) + { + socket.Connect("8.8.8.8", 65530); + IPEndPoint endPoint = socket.LocalEndPoint as IPEndPoint; + IP = endPoint.Address.ToString(); + } + + label1.Text = "Waiting at " + IP + ", 4224"; + label1.Visible = true; + + backgroundWorker1.RunWorkerAsync(); + } + + private void UpdateStatus(string status) + { + textBox1.Text += status + Environment.NewLine; + } + + private void backgroundWorker1_DoWork(object sen, DoWorkEventArgs e) + { + + IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 4224); + + UdpClient newsock = new UdpClient(ipep); + + IPEndPoint sender = new IPEndPoint(IPAddress.Any, 0); + + while (true) + { + if (backgroundWorker1.CancellationPending == true) + { + e.Cancel = true; + newsock.Close(); + return; + } + + byte[] data = newsock.Receive(ref sender); + + WriteTextBox(Encoding.ASCII.GetString(data)); + } + + void WriteTextBox(String message) + { + Invoke((MethodInvoker)(() => + { + textBox1.Text += message + Environment.NewLine; + })); + } + } + } +} diff --git a/Aura Debugger/Aura Debugger/Form1.resx b/Aura Debugger/Aura Debugger/Form1.resx new file mode 100644 index 0000000..59099f2 --- /dev/null +++ b/Aura Debugger/Aura Debugger/Form1.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/Aura Debugger/Aura Debugger/Program.cs b/Aura Debugger/Aura Debugger/Program.cs new file mode 100644 index 0000000..9809538 --- /dev/null +++ b/Aura Debugger/Aura Debugger/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Aura_Debugger +{ + static class Program + { + /// + /// Point d'entrée principal de l'application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Aura Debugger/Aura Debugger/Properties/AssemblyInfo.cs b/Aura Debugger/Aura Debugger/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..fa94dd6 --- /dev/null +++ b/Aura Debugger/Aura Debugger/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Les informations générales relatives à un assembly dépendent de +// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations +// associées à un assembly. +[assembly: AssemblyTitle("Aura Debugger")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Aura Debugger")] +[assembly: AssemblyCopyright("Copyright © 2018")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly +// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de +// COM, affectez la valeur true à l'attribut ComVisible sur ce type. +[assembly: ComVisible(false)] + +// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM +[assembly: Guid("d28d487e-40e5-4dce-b95d-568727b6e700")] + +// Les informations de version pour un assembly se composent des quatre valeurs suivantes : +// +// Version principale +// Version secondaire +// Numéro de build +// Révision +// +// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut +// en utilisant '*', comme indiqué ci-dessous : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Aura Debugger/Aura Debugger/Properties/Resources.Designer.cs b/Aura Debugger/Aura Debugger/Properties/Resources.Designer.cs new file mode 100644 index 0000000..036a40f --- /dev/null +++ b/Aura Debugger/Aura Debugger/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Ce code a été généré par un outil. +// Version du runtime :4.0.30319.42000 +// +// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si +// le code est régénéré. +// +//------------------------------------------------------------------------------ + +namespace Aura_Debugger.Properties +{ + + + /// + /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. + /// + // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder + // à l'aide d'un outil, tel que ResGen ou Visual Studio. + // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen + // avec l'option /str ou régénérez votre projet VS. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aura_Debugger.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Remplace la propriété CurrentUICulture du thread actuel pour toutes + /// les recherches de ressources à l'aide de cette classe de ressource fortement typée. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Aura Debugger/Aura Debugger/Properties/Resources.resx b/Aura Debugger/Aura Debugger/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Aura Debugger/Aura Debugger/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Aura Debugger/Aura Debugger/Properties/Settings.Designer.cs b/Aura Debugger/Aura Debugger/Properties/Settings.Designer.cs new file mode 100644 index 0000000..62b370f --- /dev/null +++ b/Aura Debugger/Aura Debugger/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Aura_Debugger.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Aura Debugger/Aura Debugger/Properties/Settings.settings b/Aura Debugger/Aura Debugger/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Aura Debugger/Aura Debugger/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + +