Wireless C program conncection interruption problem


 
Thread Tools Search this Thread
Top Forums Programming Wireless C program conncection interruption problem
# 1  
Old 12-04-2008
Wireless C program conncection interruption problem

Dear Gurus

My company has a wireless handheld C program as text-mode workstations in remote sites. We suspected that the program get interrupted sometimes because of out-of-wireless access and hence resulted in db record locking and other issue. It did trouble us a lot.

Is it possible to use fork() and signal() to detect Hangup or Interrupt so as to kill the process automatically? However, I wondered whether wirless connection interruption would not pose SIGINT or SIGHUP to the process, right? Or, any other ways to tackle the problem (a small program example)?

Thank you

Dummy
# 2  
Old 12-05-2008
One of the things you can try is to use non-blocking mode on the call that's being used for wireless access. This way the program doesn't wait but exits out.
# 3  
Old 12-05-2008
I would use alarm mechanism, if applicable. It saved me lots of grief over unstable connections.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Problem setting up wireless mouse

Did not know where to post this. Could someone help me with getting my wireless mouse to work? I can post more specifics at that time. Thanks. (9 Replies)
Discussion started by: drew77
9 Replies

2. Android

Problem with wireless network

Good day, everybody! I have a mobile phone (LG Optimus L5) with Android 4.0.3 and a tablet (PocketBook SurfPad 2) with Android 4.1.1 and I have problem with wireless network on these devices. Laptops don't have such problem. My wireless network organisation is a modem connected with an access point... (11 Replies)
Discussion started by: qzxcvbnm
11 Replies

3. Linux

wireless connection problem

Hi everyone, I am new to linux. I have installed ubuntu and I am booting together with window. But I have a problem of wireless connection in ubuntu. If I start booting using ubuntu no wireless networks become available. If I first open window and restart it and open ubuntu then only I can get... (2 Replies)
Discussion started by: nishrestha
2 Replies

4. AIX

ssh interruption after aix os upgrade

Hi Through nimadm (alt_disk_install) we done aix os upgrade in 3 lpars from aix 5.3 to aix 6.1. upgrade was successful. After the upgrade users complained on their ssh keys. Does upgrading aix version affects the user's ssh keys ? If so please suggest on options to correct them. (1 Reply)
Discussion started by: newtoaixos
1 Replies

5. Shell Programming and Scripting

How to run the script with out any interruption ?

Hi , Loggin to another host using the below command in my shell script ssh-keygen > /dev/null ssh-copy-id -i ~/.ssh/id_rsa.pub My problem is , the second commmand expecting a user input Eg : Press Enter for below three questions and issue your password Enter file... (9 Replies)
Discussion started by: arukuku
9 Replies

6. Programming

How to test a socket conncection in C++ ?

hi all, I've written a Server socket program in C++, In my program Device Id is a unique one through which I accept the client connection. My code has to pass the below two test case. 1. If a client the the same device is connceted already, i've to reject the new conncetion. 2. If i... (2 Replies)
Discussion started by: vij_krr
2 Replies

7. Red Hat

util-linux upgrade with interruption?

Hi All, I have util-linux upgrade that I need to do on redhat 4 ent. Does this going to interruption with the operation of the OS or application? Or this will be straight forward upgrade that will not make a harm or downtime of the OS. Thank you for any comments you may add. (3 Replies)
Discussion started by: itik
3 Replies

8. Ubuntu

Wireless problem?

I tried this Working wireless broadcom b43 hardy 8.04 - Ubuntu Forums and it worked the first time. Now there is something else because the lamp that indicates that the card is running is working.(it wasnt the first time). Now I just cant find any wireless network. I dont know how this... (3 Replies)
Discussion started by: isato
3 Replies

9. Cybersecurity

Wireless Lan Encryption Problem!

My wlan is working fine if theres no encryption. But as soon as i activate encryption, netcardconfig doesn't work trying to get dhcp... iwconfig says that there is an access point (shows the mac address) what could be the Problem? (0 Replies)
Discussion started by: jrosset
0 Replies

10. Windows & DOS: Issues & Discussions

Problem with wireless card

I have a wireless setup in my house and i connect my laptop thru the wireless setup .. The problem is that one of my other friends has a wireless setup too and his wireless signal comes to my house too .. The effect is that it drops my service after sometime and connects to it .. then drops... (3 Replies)
Discussion started by: DPAI
3 Replies
Login or Register to Ask a Question