Article View: es.comp.lenguajes.java
Article #29691Re: OOB socket bit
From: Chano G�mez
Date: Fri, 07 Nov 1997 00:00
Date: Fri, 07 Nov 1997 00:00
38 lines
1851 bytes
1851 bytes
> Alguien sabe como se puede activar el bit de Out Of Band de los sockets
> ????
Parece que no se puede...
Mira lo que pone en la documentaci�n del JDK 1.1 sobre las caracter�sticas
que se dejaron por incluir en el paquete java.net:
"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."
Technical Details
Message-ID:
<346337AC.D6CA41A@ran.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3462F071.1602D12A@a01-unix.uc3m.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1116f3,d1afbd17eb4c8026 X-Google-Attributes: gid1116f3,public From: "Chano G�mez" <chano@ran.es> Subject: Re: OOB socket bit Date: 1997/11/07 Message-ID: <346337AC.D6CA41A@ran.es> X-Deja-AN: 287693956 References: <3462F071.1602D12A@a01-unix.uc3m.es> Organization: Unisource Espana NEWS SERVER Newsgroups: es.comp.lenguajes.java