Programming :: Event When Network Interface Goes Down?
Jul 13, 2010
I am trying to write an app that will perform some actions when a network interface is unplugged. Is there a way to get the OS to signal me when a network interface is unplugged. I have looked at DBus but can't figure it out.
View 1 Replies
ADVERTISEMENT
Oct 27, 2009
Is there any API or event notification scheme to tell when the network is down/up?
View 1 Replies
View Related
Apr 29, 2011
Is there a way to open a network interface (that is not configured, yet), to send and receive some packets? The program will be running with root permissions.
View 11 Replies
View Related
Jun 23, 2010
I want to get info about network interfaces in C , is there any library for this purpose ?
View 1 Replies
View Related
Dec 28, 2010
In C++ or C, is there anyway to detect the name of the module or driver currently used by a network interface card (either wired or wireless, INCLUDING USB DEVICES)?My application must have this feature. I just want to detect whether the module / driver is ndiswrapper or not.
View 4 Replies
View Related
Jul 18, 2011
I have a ppp0 entry with post-up options like this
mapping ppp0
map none photon-plus motorola
map timeout: 12
[code]...
View 8 Replies
View Related
Nov 30, 2010
I'm using mq_notify to be notified about events on a message queue. But my registered notifier function is not being called. I'm pasting my code snippet below:
[Code]....
View 4 Replies
View Related
Oct 14, 2010
When i create a new event device (/dev/input/event) it is automatically grabbed by Xorg:
Code:
(II) config/udev: Adding input device Keypad Emulation Driver (/dev/input/event7)
(**) Keypad Emulation Driver: Applying InputClass "evdev keyboard catchall"
[code]....
View 1 Replies
View Related
Nov 17, 2010
I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .
View 1 Replies
View Related
Oct 27, 2010
Is any way to detect a keypress event in a console session? Preferebly without needing the application to be running in the foreground
View 2 Replies
View Related
Jan 24, 2011
i need to have the time of occurence for mouse event in xinput,right now i run
Code:
xinput test <device_id> >log.txt
(for finding device_id using xinput list)
[code]...
View 4 Replies
View Related
Jan 4, 2010
I know how to deal with a mouse click event like so:
Code:
But was happens when I am dealing with mouse dragging? Will my implementation of mouseDragged() get called for every pixel moved? So I just getX() and getY() like with a mouse click?
Also, in order to know when mouse dragging stops and starts, do I also have to put code in mousePressed and mouseReleased?
View 1 Replies
View Related
Feb 18, 2010
How to do so? For starters, I'm not sure there is such an event. Maybe it has something to do with the OS moving through certain run-levels
View 6 Replies
View Related
Feb 6, 2011
I'd like to use a perl script to update a fields in mysql database when pianobar (command line pandora radio player) starts a new song. Pianobar has the ability to run a script based on events, I'd like to take advantage of and use perl toparse the artist,song,album and update the corresponding fields. Then later retrieve them and display them with php/html. I am by no means proficient with perl. I started to use bash, but it looks like perl will be much more efficient and and less time consuming.
Code:
#! /usr/bin/perl -wT
use strict;
[code]...
View 2 Replies
View Related
Apr 14, 2011
I found multiple sites explaining how to add IPs to a network interface as virtual interface like eth0:0. However I can add IPs to an interface as well using the ip command: ip a a 192.168.2.2/24 dev eth0 What I want to know is how I can make this persistent on rhel/centos.
View 2 Replies
View Related
Apr 7, 2011
I am totally new to Linux and have just installed ubuntu 10.10. After configuring the network interface via dhcp I started getting these messages that come in so frequently I can't configure anything else.
[87.186415] Stack:
Why I am getting this messages and more importantly how do I get rid of them.
The installation is on a VM on Hyper-V.
View 1 Replies
View Related
Aug 30, 2010
today I tried to configure a network route to a host for testing my network interface. Code: route add 192.168.1.15 eth0 As I have to eth interfaces and both interface got their IP from DHCP (192.168.1.11 and 192.168.1.12) and are in the same subnet, I shut the other interface down:
Code: ifconfig eth1 down Then I tried to test the interface by doing a ping to 192.168.1.15.
Problem: When I unplug the cable from eth0 (and eth1 is still plugged) the ping still works. Somehow my linux (it's debian) powers up again eth0 and pings over this port.
How can I stop my linux doing this. I just want to have the route added only on the one interface - not the other. Is it maybe some case of a default-gateway?
View 5 Replies
View Related
Aug 20, 2010
Config: Squeeze, 2.6.32-5-amd64I just installed squeeze and the network is up and nm-manager deamon if working but the Gnome applet doesn't seem to work as usual. It indicates no network although the network is available as indicated by ifconfig and route below. When I switch WiFi on, the nm works flawlessly. When I click on the applet icon it says "Wired Network: device not supported" (or similar, msg in french is
eth0 Link encap:Ethernet HWaddr 00:1f:e2:12:ea:d8
inet adr:192.168.0.182 Bcast:192.168.0.255 Masque:255.255.255.0
adr inet6: fe80::21f:e2ff:fe12:ead8/64 Scope:Lien
[code]...
View 3 Replies
View Related
Feb 14, 2010
Last night while setting up wired & wireless connection in openSuse 11.2 Gnome version via YAST's ifup, I got wireless but lost wired connection (interface eth0). Dmesg shows that eth0 became eth1. I cannot get eth0 back. Is there any way to remedy this situation, eg. get info from the Ubuntu partition in my triple-boot laptop, without having to re-install openSUSE?
View 3 Replies
View Related
Mar 1, 2010
I would like to use zypper to update openSUSE 11.2 through the Virtual Terminals (tty1 thro' tty6).
Network Interface is wlan0 (Wireless LAN, home network through a Router) that requires a password using WPA2.
My question is how to start wlan0 through the command-line ?
View 9 Replies
View Related
Dec 26, 2010
I have a laptop connected to the the net thru an adsl modem, when I switch off the laptop network interface,(thru system-config-network) the light of the laptop network card plugged in the router stays on ( green) where as in my pc, when i do the same thing , the light of my pc network card goes off in the modem
View 5 Replies
View Related
Nov 8, 2010
When I getch() a key event (UP arrow key), the getch() function return a string of characters that I cannot compare with curses.KEY_UP constant. Here is the code I use :
while True:
w = gb.scrn.getch()
c = chr(w)
otp = 'touche:'+str(w)+' '+str(c)+"
[Code]...
It seems like getch() return three distincts bytes while I would retrieve it with a single ord() instruction in python like describes in curses/python documentation.
View 1 Replies
View Related
Jan 15, 2010
I have currently had the need to go back to basic socket programming, and implemented a simple udp packet sender. But I realized I needed to be able to select which network interface to send the packets from.
The reason is so that one of the interfaces has vlan tagging, and I need my UDP packets to be accordingly vlan tagged. For example, one of the interfaces is eth1.200.
View 2 Replies
View Related
Jan 6, 2011
The following are the output of command "ifconfig -a":
[Code]....
The interface "eth0", which is down, was not displayed, but loopback interface has been displayed. So, how can I make my application display all interfaces, including the interfaces which are down, but excluding the loopback interface?
View 4 Replies
View Related
Jan 25, 2010
after restarting my Fedora 10 the eth0 interface is not up
after i manually restart the network service everything is OK but after restarting it is the same problem.
this is the interface config file:
/etc/sysconfig/networking/devices/ifcfg-eth0 /etc/sysconfig/networking/devices/ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
HWADDR=00:0c:29:8b:82:6b
ONBOOT=yes
SEARCH="mydomainname"
[Code]....
i know i can put the restart service command in the rc.local file but it not suppose to work this way.
View 4 Replies
View Related
May 18, 2011
I have dsl broadband shared through a Modem Bridge Mode forwarded to wireless router which is configured for dhcp lease to the clients(1 Desktop, 1 Laptop).
So, in My Debian Testing Desktop, I have following lines in /etc/network/interfaces :
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
[Code]....
View 1 Replies
View Related
Mar 29, 2011
I'm having all sorts of problems connecting an access point to my computer, but here is one piece that I hope will get me going, if I can get it solved.My computer has two network interfaces, eth0 and eth1. eth1 connects to the cable modem and thence the world, and works fine. eth0 is supposed to connect to the access point over a private network. Here is the output from route with my IP address blotted out:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
[code]...
View 2 Replies
View Related
Jul 30, 2010
If I have set up 2 network interfaces on a box, if I started sending multicast traffic, it will go out through both interfaces? Or is there a way to control through which interface it will go out?
View 1 Replies
View Related
Apr 3, 2011
what the best free linux graphic design interface was? Possibly one from the ubuntu one software center. I tried boa constructor and it was glitchy and kept crashing. I want something very easy to use and as simple as possible as i am new to programming. I want something that also supports the major programming languages like python C++, etc and was also wondering where i could go to learn codes for python.
View 4 Replies
View Related
Apr 18, 2011
this is my first time here: I've been programming GUI software in C# in MonoDev for some time now. I just noticed that I can use my favorite language, C, with Glade to do the same thing. I've been going through some tutorials with a little frustration with them. Some seem to be written for older Glade versions.
The latest example had me save my Glade project to a "tutorial.glade" file. Then run it through a 'gtk-builder-convert' utility. Problem: the utility program returns errors indicating the the tutorial.glade file was written badly, that there is supposed to be a <glade-interface> tag that is missing.
[Code]...
View 1 Replies
View Related