Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
arping
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
Dexter2004
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 123

PostPosted: Fri Dec 09, 2005 1:02 am    Post subject: arping Reply with quote

Viva,

Existe algum include do kernel que possa usar num programa de c++ para verificar se um determinado ip já esta a ser usado.
Preciso de fazer um programa em c++ que escolhe um ip aleatorio dentro de uma gama de ips e verifica se ja esta a ser usado se estiver tem que escolher outro.
Existe alguma coisa para fazer isto?

Obrigado
Dexter
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Dec 09, 2005 12:58 pm    Post subject: Reply with quote

Queres dizer localmente? No mesmo computador? Ou em uma LAN?
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Demoniac_LL
n00b
n00b


Joined: 13 Sep 2004
Posts: 70
Location: Portugal, Lisbon

PostPosted: Sat Dec 10, 2005 3:42 am    Post subject: Reply with quote

Deve ser numa LAN
_________________
"Of all the things I've lost I miss my mind the most" - Ozzy Osbourne
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Sun Dec 11, 2005 12:33 am    Post subject: Reply with quote

Estou um pouco confuso... Por que não você adapta o código do net-analyzer/arping? Ou *tem* que ser em C++?
_________________
Hello.
Back to top
View user's profile Send private message
renrutal
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2005
Posts: 135
Location: Brazil

PostPosted: Sun Dec 11, 2005 1:01 am    Post subject: Reply with quote

Não é melhor tentar dar um ping, tentar se conectar ao computador com o ip escolhido ou algo parecido? Se algum desses falhar, é possível que o endereço esteja vago.
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Sun Dec 11, 2005 1:13 am    Post subject: Reply with quote

renrutal wrote:
Não é melhor tentar dar um ping, tentar se conectar ao computador com o ip escolhido ou algo parecido? Se algum desses falhar, é possível que o endereço esteja vago.


Dar um ping não é muito útil. A máquina pode estar configurada para não responder. O mesmo vale para as outras opções...
_________________
Hello.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum