[Mono-dev] Sockets on mipsel

Olivers info at oliverschneider.biz
Tue Jan 27 04:34:15 EST 2009


I have encountered the same problem and think it is firewall related.

I am still in a phase of testing but was able open sockets on a stripped
down firmware that does not start any services like firewall. On a standard
OpenWRT I was not able to open that socket, receiving the same stack trace.


Csaba Balazs wrote:
> 
> Hello,
> 
> I would like to use sockets with mono on mipsel.
> 
> This is a sample code which works well on PC:
> 
> using System;
> using System.IO;
> using System.Net.Sockets;
> 
> class ClientDemo {
> 	public static void Main(string[] args) {
> 		string serverIp = "x.x.x.x";
> 		TcpClient client = new TcpClient(serverIp, 8001);
> 		NetworkStream strm = client.GetStream();
> 
> 		// reading / writing via network stream
> 
> 		strm.Close();
> 		client.Close();
> 	}
> }
> 
> 
> On Mipsel:
> 
> export MONO_PATH="/usr/lib/mono/1.0/"
> Stacktrace:
> 
>   at System.Net.Sockets.TcpClient.Connect (string,int) <0xffffffff>
>   at System.Net.Sockets.TcpClient.Connect (string,int) <0x00040>
>   at System.Net.Sockets.TcpClient..ctor (string,int) <0x0003c>
>   at ClientDemo.Main (string[]) <0x00054>
>   at (wrapper runtime-invoke) ClientDemo.runtime_invoke_void_string[]
> (object,intptr,intptr,intptr) <0xffffffff>
> Aborted
> 
> 
> export MONO_PATH="/usr/lib/mono/2.0/"
> Stacktrace:
> 
>   at System.DateTime.ToLocalTime () <0xffffffff>
>   at System.DateTime.ToLocalTime () <0x00028>
>   at System.IO.File..cctor () <0x00050>
>   at (wrapper runtime-invoke) System.Type.runtime_invoke_void
> (object,intptr,intptr,intptr) <0xffffffff>
>   at
> System.Configuration.ConfigurationManager.OpenExeConfigurationInternal
> (System.Configuration.ConfigurationUserLevel,System.Reflection.Assembly,string)
> <0xffffffff>
>   at
> System.Configuration.ConfigurationManager.OpenExeConfigurationInternal
> (System.Configuration.ConfigurationUserLevel,System.Reflection.Assembly,string)
> <0x00188>
>   at
> System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
> (string) <0x000f0>
>   at System.Configuration.ConfigurationManager.GetSection (string)
> <0x00050>
>   at System.Net.Sockets.Socket.CheckProtocolSupport () <0x0019c>
>   at System.Net.Dns..cctor () <0x00018>
>   at (wrapper runtime-invoke) System.Net.Dns.runtime_invoke_void
> (object,intptr,intptr,intptr) <0xffffffff>
>   at System.Net.Sockets.TcpClient.Connect (string,int) <0xffffffff>
>   at System.Net.Sockets.TcpClient.Connect (string,int) <0x00040>
>   at System.Net.Sockets.TcpClient..ctor (string,int) <0x0003c>
>   at ClientDemo.Main (string[]) <0x00054>
>   at (wrapper runtime-invoke) ClientDemo.runtime_invoke_void_string[]
> (object,intptr,intptr,intptr) <0xffffffff>
> Aborted
> 
> What is the problem? I would like to use mono 2.0 dlls.
> I can use sockets in C correctly on mipsel.
> 
> 
> Thank you for your help,
> 
> Csaba
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Sockets-on-mipsel-tp12978757p21682211.html
Sent from the Mono - Dev mailing list archive at Nabble.com.



More information about the Mono-devel-list mailing list