I don' t know why this code won't get past the NetLibSocketAccept call.
When I step through the debugger it always stops there, then I have to
forcefully close the emulator and re-open it.
When I step through I have a valid listenRef and sNetLibRefNum....
Any help would be appreciated
Nick
NetSocketRef GppNetSocketAccept (NetSocketRef listenRef)
{
// Declare local variables.
NetSocketRef acceptRef = NULL; // Return value.
NetSocketAddrINType inetAddr; // Target for requestor's Internet
address.
Int16 size = sizeof (inetAddr); // Size of Internet address target.
Err err = 0;
// Clear address.
MemSet (&inetAddr, size, '\0');
// Accept the incoming connection.
acceptRef = NetLibSocketAccept (sNetLibRefNum,
listenRef,
(NetSocketAddrType*) &inetAddr,
&size,
kNetTimeout * SysTicksPerSecond (),
&err);
// Return result.
return acceptRef;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/