Dotnet socket in maxscript?

Dotnet socket in maxscript?

Anonymous
Not applicable
1,014 Views
1 Reply
Message 1 of 2

Dotnet socket in maxscript?

Anonymous
Not applicable
Hi,

Trying to open & connect socket with dotnet:


rollout test_rollout "Test" width:220 height:220
(
local sock = dotNetClass "System.Net.Sockets.Socket"
)

createdialog test_rollout

showproperties test_rollout.sock
showmethods test_rollout.sock
showEvents test_rollout.sock
dotNet.showConstructors test_rollout.sock


But there is no "Connect" property or method listed in that "System.Net.Sockets.Socket"..

(Havent used dotnet before..)

thanks.


* This one might work better,
sock = dotNetClass "System.Net.Sockets.TcpListener"

if can get it to connect
http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx (msdn)

**
Some progress, needs line:
dotnet.loadAssembly "system.dll"
0 Likes
1,015 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I recently made a blog post about this. Definitely not the easiest thing to hack out in MaxScript. Hope this helps:
http://techarttiki.blogspot.com/2009/12/maxscript-dotnet-sockets-with-python.html
0 Likes