Hello everybody,
I'm begin a devlopment C# and I would like use MvxSockNx64. But when i try to connect with the function MvxSockConnect, have an error message : Error No 7.
I supposes it's my IP address is wrong but i don't know where i can find the good one.
this my simple code:
public static void CallAPIfromMVXSock(){
SERVER_ID sid = new SERVER_ID();
uint rc;
Console.Write("Start console API");
///m3api-rest/execute/
rc = MvxSock.Connect(ref sid, "">http://exemple.ad.fr", 17401, LOGIN, PSW, "CRS610MI", "120");
if (rc != 0)
{
MvxSock.ShowLastError(ref sid, "Error no " + rc + "
");
return;
}
MvxSock.SetField(ref sid, "CUNO", "10000002");
rc = MvxSock.Access(ref sid, "LstByNumber");
if (rc != 0)
{
MvxSock.ShowLastError(ref sid, "Error no " + rc + "
");
MvxSock.Close(ref sid);
return;
}
while (MvxSock.More(ref sid))
{
Console.Write(MvxSock.GetField(ref sid, "CUNO") + " ");
Console.WriteLine(MvxSock.GetField(ref sid, "CUNM"));
MvxSock.Access(ref sid, null);
}
Console.Write("End of API");
MvxSock.Close(ref sid);
}
Where i can find the good address for use the DLL MvxSockN ?