Not sure why you would be recieving wrong numbers, because the DLL returns a boolean number which can only be 1 or 0.
A few things I forgot to tell you. Firstly, in the message recieving code, you need to do what you're doing now, but you need to loop the part where you get a message until you have no more messages left. For example like this:
function Receiver()
newData = net recieve(1)
if newData=0 then exitfunction
get net msg
repeat
`get data from message here **
newMsg = get net msg()
until newMsg=0
endfunction
I think its safe to assume that if
net recieve returns 1 then there is at least one message to read, so that code would in theory work (just explaining that so you don't get confused by my logic).
I seem to have forgetten what else I was going to tell you..
"Lets migrate like bricks" - Me