Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. port=22131
  2. make.socket(host = "localhost", port, fail = TRUE, server = TRUE)
  3. # Connect to server
  4. s <- socketConnection('localhost', port=port)
  5. # ...then send data...
  6. writeLines(c('foo', 'bar'), s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement