[Mono-dev] Sockets on mipsel
Csaba Balazs
csaba.balazs at researchstudio.at
Mon Oct 1 08:37:32 EDT 2007
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
More information about the Mono-devel-list
mailing list