Comment detail

echoクライアント (Nested Flatten)

こんな感じでしょうか。

1
2
3
4
5
6
7
8
9
echo.client <- function(host.name="localhost", port.number=9999){
  sock <- socketConnection(host=host.name, port=port.number)
  repeat{
    writeLines(readLines(), sock)
    writeLines(readLines(sock, n=1))
  }
}
argv <- commandArgs(trailingOnly=T)
echo.client(argv[1], argv[2])

Index

Feed

Other

Link

Pathtraq

loading...