Re[2]: NetLibReceive has return value -1 : socket shutdown by remote host

2005-03-17 Thread A.Kazantsev
vk i am stuck here. vk could you give me a brief idea of what exactly is vk NetLibSelect for..some fellow programmer suggested to use vk this...idont have the PlamOs network Programming book by Greg vk Winton to refer. Ben meant that everyone doing NetLib implementation has to get and to read the

NetLibReceive has return value -1 : socket shutdown by remote host

2005-03-16 Thread versha khar
In my network application on Simulator5 using codewarrior8.0 ,i am using NetLibReceive function call , and the returned value is -1 , PalmOs API References says that this is because The remote host shuts down the socket? Why is this happening? i am unable to understand! can i use some

Re: NetLibReceive has return value -1 : socket shutdown by remote host

2005-03-16 Thread Vladimir Lozhnikov
check your code on device only (not simulator) vk In my network application on Simulator5 using codewarrior8.0 ,i am using NetLibReceive function call , and the returned value is -1 , PalmOs API References says that this is because The remote vk host shuts down the socket? vk Why is this

Re: NetLibReceive has return value -1 : socket shutdown by remote host

2005-03-16 Thread Ben Combee
i am new to Palm Network programming. suggestions are welcomed! Get and read the O'Reilly book Palm OS Network Programming... it's my favorite guide to NetLib usage on the device. -- Ben Combee, Senior Software Engineer, palmOne, Inc. Combee on Palm OS weblog: http://palmos.combee.net/

re: NetLibReceive has return value -1 : socket shutdown by remote host

2005-03-16 Thread Joe Fant
What is returned by the errP parameter in the NetLibReceive call? This will give you a better idea of why NetLibReceive is unhappy. Setting non-blocking mode is accomplished by: flag = true; i16Result = NetLibSocketOptionSet(u16libRefNum, i16socketRefnum, netSocketOptLevelSocket,

re: NetLibReceive has return value -1 : socket shutdown by remote host

2005-03-16 Thread versha khar
thanks for the reply. errP parameter in the NetLibReceive call does not return any error i have checked for all the possible error values.Thats the most surprising thing...i will try with the nonblocking method now and lets see if that solves my problem.Thanks a lot. regards versha -- For

re: NetLibReceive has return value -1 : socket shutdown by remote host

2005-03-16 Thread versha khar
i tried the NetLibSocketOptionSet(parameters as nonblocking) - after NetLibSocketOpen and before NetLibSocketConnect - i am getting netErrWouldBlock error in NetLibSocketConnect. In NetLibreceive the return value is 0 i.e the socket has been shutdown by remote host...the errP parameter here