using System; using Gtk; public class Prova { private Socket s; private Window main; public Prova() { Application.Init(); main = new Window("Prova"); s = new Socket(); Console.WriteLine("Socket id: "+s.Id); s.Show(); main.Add(s); main.ShowAll(); Application.Run(); } public static void Main(string[] args) { new Prova(); } }