Searched refs:mhdr (Results 1 – 2 of 2) sorted by relevance
/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 209 bool structCmsghdrArrayToMsgcontrol(JNIEnv* env, jobjectArray cmsgArray, struct msghdr& mhdr) { in structCmsghdrArrayToMsgcontrol() argument 237 mhdr.msg_controllen += CMSG_SPACE(env->GetArrayLength(cmsgData.get())); in structCmsghdrArrayToMsgcontrol() 240 mhdr.msg_control = (unsigned char*)malloc(mhdr.msg_controllen); in structCmsghdrArrayToMsgcontrol() 241 if (mhdr.msg_control == NULL) { in structCmsghdrArrayToMsgcontrol() 245 memset(mhdr.msg_control, 0, mhdr.msg_controllen); in structCmsghdrArrayToMsgcontrol() 248 for (cm = CMSG_FIRSTHDR(&mhdr), i = 0; (cm != NULL); cm = CMSG_NXTHDR(&mhdr, cm), ++i) in structCmsghdrArrayToMsgcontrol() 268 bool msgcontrolToStructCmsghdrArray(JNIEnv* env, jobject structMsghdr, struct msghdr& mhdr) { in msgcontrolToStructCmsghdrArray() argument 285 for (cm = CMSG_FIRSTHDR(&mhdr); (cm != NULL); cm = CMSG_NXTHDR(&mhdr, cm)) { in msgcontrolToStructCmsghdrArray() 298 for (cm = CMSG_FIRSTHDR(&mhdr),i=0; (cm!=NULL); cm = CMSG_NXTHDR(&mhdr, cm),i++) { in msgcontrolToStructCmsghdrArray() 361 bool byteBufferArrayToIOV(JNIEnv* env, jobjectArray msgiovArray, struct msghdr& mhdr, in byteBufferArrayToIOV() argument [all …]
|
D | NetworkUtilities.h | 44 bool msghdrJavaToC(JNIEnv* env, jobject structMsghdr, struct msghdr& mhdr, 49 bool msghdrCToJava(JNIEnv* env, jobject structMsghdr, struct msghdr& mhdr,
|