Taking each part of your post...
- Use `man write` or `man talk` to get the complete workings of the command;
- Use the strace command to see what the command is doing, e.g. `strace write user [ttyname]`;
- Use ethereal to capture the packets to see what traffic is actually sent.
It may be that talk or write don't do what you need - hence the man page reference...