I posted a blog entry with a full/working example of using DotNet sockets in MaxScript to send data to an outside tool (Python in this case).
The example is a little wxPython UI that updates an object name list when the selection changes in 3ds Max.
I was unable to find a similar MXS+sockets example anywhere, and thought this might be useful to some.