Value read.socket returns the string read as a length-one character vector. write.socket returns the number of bytes written. Author(s) Thomas Lumley See Also close.socket, make.socket Examples finger <- function(user, host = "localhost", port = 79, print = TRUE) { if (!is.character(user)) stop("user name must be a string") user <- paste(user,"\r\n") socket <- make.socket(host, port) on.exit(close