Hi Jeff,
Regarding the code, i initialized using the code below for a UDP server:
after loading the net lib
NetLibP->MasterSocket = NetLibSocketOpen (NetLibP->AppNetRefnum,
netSocketAddrINET,
netSocketTypeDatagram,
netSocketProtoIPUDP,
NetLibP->AppNetTimeout,
&err);
NetLibP->MasterAddrSize = sizeof(NetLibP->MasterAddr);
MemSet(&NetLibP->MasterAddr,
sizeof(NetLibP->MasterAddr), 0);
NetLibP->MasterAddr.family = netSocketAddrINET;
NetLibP->MasterAddr.port = NetHToNS(Port);
NetLibP->MasterAddr.addr = NetHToNL(GetIPAddr(NetLibP));
NetLibSocketBind (NetLibP->AppNetRefnum,
NetLibP->MasterSocket,
(NetSocketAddrType *)&NetLibP->MasterAddr,
sizeof(NetLibP->MasterAddr),
NetLibP->AppNetTimeout,
&err);
err = SetSocketBlocking(NetLibP, MasterSocketType, false);
using the initilization above i was able to receive messages using
NetLibRecieve, but once i tries to send a message using netlibsend, value of -1
is returned and the error this contains netErrSocketNotConnected.
but before i got the netErrWouldBlock, i dnt know why right now the error is
netErrSocketNotConnected.
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/