목록writev (1)
no swim no life
readv, writev 벡터 입출력
read, write와 기본적으로 동일하나, 다수의 버퍼의 데이터를 한번에 출력/기록 할 수 있다. Prototype int writev( int fd, struct iovec iov[], int iovcount ); int readv( int fd, struct iovec iov[], int iovcount ); struct iovec { caddr_t iov_base; // 버퍼의 시작 포인터 int lov_len; // 버퍼의 바이트 사이즈 } struct iovec iov[3]; iov[0].iov_base = buf1; iov[0].iov_len = strlen(buf1); iov[1].iov_base = buf2; iov[1].iov_len = strlen(buf2); iov[2].iov_ba..
work/fundamental
2009. 1. 31. 14:51