Thanks Daniel for your help...
i tried using the listener and accept functions
but whenever i try to connect to the socket an error occurs saying EventToARM 
data not processed.
I used the code below to just simply print if there is an attempt to connect to 
the device.
                        NetSocketAddrType *AddrNew;
                        Int16 *AddrLength;
                        NetSocketRef newSocket = NetLibSocketAccept (libRefnum, 
theSocket, (NetSocketAddrType* )&AddrNew,  (Int16 *)&AddrLength,  
sysTicksPerSecond*10,  &error);
                        if(newSocket == 0) {
                                WinDrawChars("Success", StrLen("Success"), 50, 
50);
        result = NetLibSocketClose (libRefnum, // Network Library
                               newSocket,       // Socket reference
                               -1,           // Timeout
                               &error        // Error result
                               );
                        }
                        CloseConnection();

thanks
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to