Skip to content
Prev 19129 / 63421 Next

Section 7.1 HML documentation (PR#8484)

greg.kochanski at phon.ox.ac.uk wrote:
The documentation is, I believe, correct and precise as it stands.
What it doesn't emphasize and mention is the difference between
"BSD socket" and "socket connection", or an "R connection of the socket 
type". And it is recommended that you
use "socket connection" instead of "BSD socket".

The earlier "BSD socket" is created, read, write with 
"make.socket"/"read.socket"/"write socket"/"close socket".

The newer "socket connection" is created by creating a new connection 
object like this:
      con <- socketConnection(port = 79, blocking = TRUE)
and invoking the open/write/read method of the "connection"
object. type "?connection" in an R prompt for details.

"BSD socket" is a unix concept, "socket connection" is an R object.
The paragraph should have put "BSD socket" and "socket connection"
in quote or italics. Make more sense?

Somebody please fix the paragraph... :-).