Socket Interface for Matlab Mex Files