PDA

View Full Version : maya command port and c# sockets


JohnBowring
02-19-2009, 04:09 PM
Hi everyone, i need some help please. I am trying to put together a c# app that can communicate with maya over the command port, i started by opening a command port in maya:

commandPort -name ":10001";

so that should open port 10001 to my understanding

and heres a sample of my c# app, its nonthing fancy, all i want to do at this point is connect to the port

private void button1_Click(object sender, EventArgs e)
{
Socket m_socListener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
System.Net.IPAddress ipAdd = System.Net.IPAddress.Parse("127.0.0.1");
System.Net.IPEndPoint remoteEP = new IPEndPoint(ipAdd, 10001);
m_socListener.Connect(remoteEP);
}

but when I run the app I always get the same error:

No connection could be made because the target machine actively refused it

i used netstat and it does seem to find a port listening but it doesnt seem to have a standard ipaddress and i dont understand what it means:

TCP [::]:3389 John-PC:0 LISTENING
TCP [::]:5357 John-PC:0 LISTENING
TCP [::]:7008 John-PC:0 LISTENING
TCP [::]:10001 John-PC:0 LISTENING
TCP [::]:49152 John-PC:0 LISTENING
TCP [::]:49153 John-PC:0 LISTENING
TCP [::]:49154 John-PC:0 LISTENING

what does [::] mean?

any help you can give me would be appreciated, thanks.

CGTalk Moderation
02-19-2009, 04:09 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.