Pankaj, Java does not have any implementation of RAW/ICMP sockets. The only types of sockets available are TCP and UDP. If you want to implement a ping (like) utility, you can do it in TCP or UDP, but you will also have to implement a server for it. Or, you might want to take a look at the echo server that runs on port 7 and is UDP based. - Chinmay > ---------- > From: Pankaj[SMTP:[EMAIL PROTECTED]] > Reply To: A mailing list for discussion about Sun Microsystem's Java > Servlet API Technology. > Sent: Thursday, November 18, 1999 12:03 PM > To: [EMAIL PROTECTED] > Subject: Re: How to know a brower closed > > Hello, > > I know this is way off topic, but i found this in the Java Documentation > (socketOpt.html) that i downloaded. Takea look and correct me if i am > wrong. > ------------------------------------------------------------------------ > Fell by the wayside... > > Some possible BSD options that are not supported in java: > > SO_KEEPALIVE: > With this option, the OS repeatedly pings the connection's peer to > make > sure it's still there. The conventional wisdom on > this is that this functionality is best handled at the application > level. > The Host Requirements RFC specifies a ping interval > of 2 hours, which is not practically useful. > > MSG_OOB: > This is really an option one passes to a read() or recv() on a socket > to > read data marked out-of-band or "urgent" if it > present, before in-band data. If we include this we should also > include > an option SO_OOBINLINE (below), but this > doesn't seem to be needed. The real complication against this is that > we'd also have to provide a symmetrical way to > write OOB data, and again this hasn't been requested. > > SO_OOBINLINE: > This option will inline OOB data, making it appear inline like > "normal" > data. It would work in conjunction with > MSG_OOB. > > RAW/ICMP SOCKETS: > The main argument in favor of this one seemed to be so people could > write > "ping" in java. Security nightmare. Must be > root on UNIX machines. > ------------------------------------------------------------------------ > > Now, Does this mean i cannot write a pinging utility in Pure Java..? What > do > they mean by "Security Nightmare. Must be root > on UNIX machines." Does it have to do anything with "Ping of death." > problem? > Please clarify anybody..! > > Thanx, > Pankaj > > > ____________________________________________________________________ > Get free email and a permanent address at http://www.netaddress.com/?N=1 > > __________________________________________________________________________ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: How to know a brower closed
Nadkarni, Chinmay (Chinmay)** CTR ** Sat, 16 Jan 1999 16:02:58 -0800
- Re: How to know a brower closed Pankaj
- Re: How to know a brower closed John McDonald
- Re: How to know a brower closed Nadkarni, Chinmay (Chinmay)** CTR **
- Re: How to know a brower closed Pankaj
- Re: How to know a brower closed Pankaj
- Re: How to know a brower clo... Preston L. Bannister
- Re: How to know a brower closed Juergen Hermann
- How to know a brower closed Joe Lei
- Re: How to know a brower clo... David Mossakowski
- Re: How to know a brower closed Sean Jiang
- Re: How to know a brower closed Gupta, Lokesh
- Re: How to know a brower clo... David Mossakowski
- Re: How to know a brower closed Pankaj
