Mono Compatible Networking / Socket Library [cerrado]
¿Existen bibliotecas de zócalos / redes compatibles con Mono (C #) por ahí?
Preferiblemente algo que es:
Multi RoscadoEvento conducidoCapaz de múltiples conexionesManeja piezas de cliente y servidor.Se ejecuta en tiempos de ejecución Mono y MS .NETMuy simpleGratis (y utilizable en software comercial)También sería realmente genial si fuera:
Compatible con .NET Compact Framework (Windows Mobile)Compatible con MonoTouch (iPhone)Editar:
Para aclarar más, lo que quise decir con mi comentario de "un nivel por encima de TCP / IP" fue que quiero algo que sea básicamente un servidor / cliente autónomo. No quiero tener que lidiar con escribir el código de subprocesos, manejar cada conexión, etc. Por ejemplo, me encantaría que el código se vea así:
Server s = new Server(8080);
s.NewConnection += new ConnectionEventHandler(NewConnection);
s.DataRecieved += new DataEventHandler(NewData);
s.Start();
void NewConnection(object sender, EventArgs e)
{
s.Send((Connection)sender, "Hello World!"); //(Connection)sender is the connection instance so the server knows which to send the response to
}
void NewData(object sender, EventArgs e)
{
s.Send((Connection)sender, e.Data); //Echo back
}
No es el código más limpio, pero creo que da la idea básica.