I m developing the client application in which i want the notification when
their is data in the socket to read
I m able to read the data only for the first time when the socket is first time
connected but after that i want to read the socket each time when their is data
to read (means read every time when the server send me data and connection is
alive always for that) and go through the palm documentation and lots of code i
the forum and i found that for that i have to register the notification by the
use of SysNotifyRegister
here is snap shot of my code and tell me what i m doing wrong so i did get the
notification i m trying the code of socketnotify example which i get from the
knw Base
#define netTestNotification 'sknt' // what is this i dont understand
static void RegisterNotification()
{
UInt16 cardNo;
LocalID dbID;
if (0 != SysCurAppDatabase(&cardNo, &dbID))
return; // shouldn't ever fail, but just in case.
SysNotifyRegister(cardNo, dbID, netTestNotification,NULL,
sysNotifyNormalPriority,0);
}
static Err PrimeSocketNotify(OurGlobalsType *gP)
{
NetSocketNoticeType notice;
void *option;
notice.condition = 0xFFFFFFFF; // any event, use more specific
conditions if needed.
//This is the only eType which is currently support.
notice.type = netSocketNoticeNotify;
notice.notice.notify.notifyType =netTestNotification;
option = ¬ice;
return(NetLibSocketOptionSet(AppNetRefnum,socket,netSocketOptLevelSocket,
netSocketOptSockNotice,&option,sizeof(option),AppNetTimeout,&errno));
}
and the PrimeSocketNotify returning the error value
so pls somebody tell me how do i get the notification for the TCP data receive
in socket .
what i m doing wrong in my code
THanks
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/