[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UDP ping ?



-> >is there a way to get which port does remote server listen on for UDP
-> >pings?
-> 
-> DAMN!  i should read my code better.
-> 
-> struct servent *serv;
-> ushort port;
-> 
-> serv = getservbyname("echo","udp");
-> port = serv->s_port;

DAMN! you should read my question better.

i asked about IRC servers, they usually listen on 6667 for UDP pings but not
always. every time I set up wrong UDP port that (in config) for some remote
server, I keep getting messages:

*** Failed in connecting to nextra.irc.sk[0.0.0.0@.6667] :Socket is not connected

Of course I can ask all admins of servers i have c:/N: for; but I'd like to
check it by myself; is there any reason why I can't?

-- 
 Matus "fantomas" Uhlar, sysadmin at NEXTRA, Slovakia; IRCNET admin of *.sk
 uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ ; http://www.nextra.sk/
 Atheism is a non-prophet organization. 

---
Odchozí zpráva obsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.167 / Virová báze: 80 - datum vydání: 6/29/2000