Hello All,
When I debug using the emulator, the NetLibReceive call returns a
netErrParam error. The code below works fine on the actual device.
/////////////////////////////////////////////////
SWord recv;
short SocketReceiveErr;
CharPtr msg;
MemSet(msg,size,'\0');
recv = NetLibReceive(NetLibOpenRef,theSocket,msg, size,0,
(NetSocketAddrType *)&ForeignAddrType,
(unsigned short
*)sizeof(ForeignAddrType),-1,&SocketReceiveErr);
/////////////////////////////////////////////////
Any help will be much appreciated.
Alex
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/