The HyperNews Linux KHG Discussion Pages
| Next-in-Thread | Next Response | Previous Response | Next Thread |

Question: readv/writev & other sock funcs

Base: The Linux Kernel Hackers' Guide
Keywords: socket programming readv
Date: Mon, 21 Oct 1996 19:58:50 GMT
From: dwreski@ultrix.ramapo.edu (Dave Wreski)

I'm having a problem writing code to make use of readv() and the iovec struct. I'm pretty sure I'm doing it correctly, as I have spent countless hours troubleshooting (seasoned newbie here)

Should I post to linux-c-programming, or is it ok to ask kernel/C/socket questions here?

I'm using 2.0.20 or so, and I have one writev() that writes two iovec structs to a socket. The readv() on the other end requires two reads (well, readv's), to gather the data, and it doesn't seem to even be placed back together in my header properly.

Any ideas on pointers, or directions? I have most of Stevens' books, and have scoured them. They seem to be more interested in fd passing, which I don't need. (should I be using sendmsg()/recvmsg()?)

Thanks so much, Dave Wreski dwreski@ultrix.ramapo.edu


No Responses

a Response to: "readv/writev & other sock funcs"

| Next-in-Thread | Next Response | Previous Response | Next Thread |
| Notification | Copy/Move/Delete | Admin Mode |
| Membership | Help for HyperNews 1.9B5.6 | Frames |