public SimpleStreamConnection(SocketStreamConnection clientSocket, MessageReceiveHandler receiveEventHandler, LogCallback logCallbackHandler) { m_logCallback = logCallbackHandler; m_pipe = clientSocket; m_pipe.MessageReceived += new MessageEventHandler(ReceiveMessage); m_messageReceiveHandler = receiveEventHandler; }
protected void onNewClientConnection(SocketStreamConnection client) { new MaxSceneServer(client); }
public MaxSceneServer(SocketStreamConnection pipe) { _gi = Autodesk.Max.GlobalInterface.Instance; m_pipe = new SimpleStreamConnection(pipe, ProcessMessage, Log.Add); Log.Add("New Client Connection."); }