Lines Matching refs:pAddr
494 oslSocketAddr pAddr = (oslSocketAddr) rtl_allocateZeroMemory( sizeof( struct oslSocketAddrImpl )); in __osl_createSocketAddr() local
495 pAddr->m_nRefCount = 1; in __osl_createSocketAddr()
499 return pAddr; in __osl_createSocketAddr()
507 oslSocketAddr pAddr = __osl_createSocketAddr(); in __osl_createSocketAddrWithFamily() local
512 struct sockaddr_in* pInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in __osl_createSocketAddrWithFamily()
520 pAddr->m_sockaddr.sa_family = FAMILY_TO_NATIVE(family); in __osl_createSocketAddrWithFamily()
522 return pAddr; in __osl_createSocketAddrWithFamily()
527 oslSocketAddr pAddr = __osl_createSocketAddr(); in __osl_createSocketAddrFromSystem() local
528 memcpy( &(pAddr->m_sockaddr), pSystemSockAddr, sizeof( sockaddr ) ); in __osl_createSocketAddrFromSystem()
529 return pAddr; in __osl_createSocketAddrFromSystem()
544 oslSocketAddr pAddr = 0; in osl_createEmptySocketAddr() local
549 pAddr = __osl_createSocketAddrWithFamily(Family, 0 , htonl(INADDR_ANY) ); in osl_createEmptySocketAddr()
553 pAddr = __osl_createSocketAddrWithFamily( Family , 0 , 0 ); in osl_createEmptySocketAddr()
556 return pAddr; in osl_createEmptySocketAddr()
661 oslSocketAddr pAddr = in osl_createInetBroadcastAddr() local
663 return pAddr; in osl_createInetBroadcastAddr()
683 oslSocketAddr pAddr = 0; in osl_createInetSocketAddr() local
686 pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, htons( (sal_uInt16)Port), Addr ); in osl_createInetSocketAddr()
688 return pAddr; in osl_createInetSocketAddr()
691 oslSocketResult SAL_CALL osl_setAddrOfSocketAddr( oslSocketAddr pAddr, sal_Sequence *pByteSeq ) in osl_setAddrOfSocketAddr() argument
693 OSL_ASSERT( pAddr ); in osl_setAddrOfSocketAddr()
697 if( pAddr && pByteSeq ) in osl_setAddrOfSocketAddr()
699 OSL_ASSERT( pAddr->m_sockaddr.sa_family == FAMILY_TO_NATIVE( osl_Socket_FamilyInet ) ); in osl_setAddrOfSocketAddr()
701 struct sockaddr_in * pSystemInetAddr = (struct sockaddr_in * ) &(pAddr->m_sockaddr); in osl_setAddrOfSocketAddr()
711 oslSocketResult SAL_CALL osl_getAddrOfSocketAddr( oslSocketAddr pAddr, sal_Sequence **ppByteSeq ) in osl_getAddrOfSocketAddr() argument
713 OSL_ASSERT( pAddr ); in osl_getAddrOfSocketAddr()
717 if( pAddr && ppByteSeq ) in osl_getAddrOfSocketAddr()
719 struct sockaddr_in * pSystemInetAddr = (struct sockaddr_in * ) &(pAddr->m_sockaddr); in osl_getAddrOfSocketAddr()
736 oslHostAddr pAddr= NULL; in __osl_hostentToHostAddr() local
779 pAddr= (oslHostAddr )rtl_allocateMemory (sizeof (struct oslHostAddrImpl)); in __osl_hostentToHostAddr()
781 if (pAddr == NULL) in __osl_hostentToHostAddr()
788 pAddr->pHostName= cn; in __osl_hostentToHostAddr()
789 pAddr->pSockAddr= pSocketAddr; in __osl_hostentToHostAddr()
791 return pAddr; in __osl_hostentToHostAddr()
801 oslHostAddr pAddr; in osl_createHostAddr() local
815 pAddr= (oslHostAddr)rtl_allocateMemory (sizeof (struct oslHostAddrImpl)); in osl_createHostAddr()
817 if (pAddr == NULL) in osl_createHostAddr()
823 pAddr->pHostName= cn; in osl_createHostAddr()
824 pAddr->pSockAddr= osl_copySocketAddr( pSocketAddr ); in osl_createHostAddr()
826 return ((oslHostAddr)pAddr); in osl_createHostAddr()
857 oslHostAddr SAL_CALL osl_createHostAddrByAddr(const oslSocketAddr pAddr) in osl_createHostAddrByAddr() argument
859 if (pAddr == NULL) in osl_createHostAddrByAddr()
862 if (pAddr->m_sockaddr.sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyInet)) in osl_createHostAddrByAddr()
864 const struct sockaddr_in *sin= (const struct sockaddr_in *)&(pAddr->m_sockaddr); in osl_createHostAddrByAddr()
887 oslHostAddr pAddr= (oslHostAddr)Addr; in osl_copyHostAddr() local
889 if (pAddr) in osl_copyHostAddr()
890 return osl_createHostAddr (pAddr->pHostName, pAddr->pSockAddr); in osl_copyHostAddr()
899 const oslHostAddr pAddr, rtl_uString **strHostname) in osl_getHostnameOfHostAddr() argument
901 if (pAddr) in osl_getHostnameOfHostAddr()
902 rtl_uString_assign (strHostname, pAddr->pHostName); in osl_getHostnameOfHostAddr()
910 oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr(const oslHostAddr pAddr) in osl_getSocketAddrOfHostAddr() argument
912 if (pAddr) in osl_getSocketAddrOfHostAddr()
913 return (const oslSocketAddr)(pAddr->pSockAddr); in osl_getSocketAddrOfHostAddr()
921 void SAL_CALL osl_destroyHostAddr(oslHostAddr pAddr) in osl_destroyHostAddr() argument
923 if (pAddr) in osl_destroyHostAddr()
925 if (pAddr->pHostName) in osl_destroyHostAddr()
926 rtl_uString_release (pAddr->pHostName); in osl_destroyHostAddr()
927 if (pAddr->pSockAddr) in osl_destroyHostAddr()
928 osl_destroySocketAddr( pAddr->pSockAddr ); in osl_destroyHostAddr()
930 rtl_freeMemory (pAddr); in osl_destroyHostAddr()
949 oslHostAddr pAddr; in osl_getLocalHostname() local
958 pAddr = osl_createHostAddrByName(hostName); in osl_getLocalHostname()
961 if (pAddr && pAddr->pHostName) in osl_getLocalHostname()
962 …memcpy(LocalHostname, pAddr->pHostName->buffer, sizeof(sal_Unicode)*(rtl_ustr_getLength(pAddr->pHo… in osl_getLocalHostname()
966 osl_destroyHostAddr ((oslHostAddr)pAddr); in osl_getLocalHostname()
985 oslHostAddr pAddr= in osl_resolveHostname() local
987 if (pAddr) in osl_resolveHostname()
989 oslSocketAddr SockAddr = osl_copySocketAddr( pAddr->pSockAddr ); in osl_resolveHostname()
990 osl_destroyHostAddr(pAddr); in osl_resolveHostname()
1035 void SAL_CALL osl_destroySocketAddr(oslSocketAddr pAddr) in osl_destroySocketAddr() argument
1037 __osl_destroySocketAddr( pAddr ); in osl_destroySocketAddr()
1043 oslAddrFamily SAL_CALL osl_getFamilyOfSocketAddr(oslSocketAddr pAddr) in osl_getFamilyOfSocketAddr() argument
1045 if (pAddr) in osl_getFamilyOfSocketAddr()
1046 return FAMILY_FROM_NATIVE(pAddr->m_sockaddr.sa_family); in osl_getFamilyOfSocketAddr()
1054 sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(oslSocketAddr pAddr) in osl_getInetPortOfSocketAddr() argument
1056 if( pAddr ) in osl_getInetPortOfSocketAddr()
1058 struct sockaddr_in* pSystemInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in osl_getInetPortOfSocketAddr()
1070 oslSocketAddr pAddr, in osl_setInetPortOfSocketAddr() argument
1073 if (pAddr == NULL) in osl_setInetPortOfSocketAddr()
1076 struct sockaddr_in* pSystemInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in osl_setInetPortOfSocketAddr()
1092 oslHostAddr pAddr= osl_createHostAddrByAddr (Addr); in osl_getHostnameOfSocketAddr() local
1094 if (pAddr) in osl_getHostnameOfSocketAddr()
1096 rtl_uString_newFromString(strHostName, pAddr->pHostName); in osl_getHostnameOfSocketAddr()
1098 osl_destroyHostAddr(pAddr); in osl_getHostnameOfSocketAddr()
1110 oslSocketAddr pAddr, in osl_getDottedInetAddrOfSocketAddr() argument
1115 if (pAddr == NULL) in osl_getDottedInetAddrOfSocketAddr()
1118 struct sockaddr_in *pSystemInetAddr = (struct sockaddr_in*) &(pAddr->m_sockaddr); in osl_getDottedInetAddrOfSocketAddr()
1220 oslSocketAddr pAddr = __osl_createSocketAddrFromSystem( &Addr ); in osl_getLocalAddrOfSocket() local
1221 return pAddr; in osl_getLocalAddrOfSocket()
1240 oslSocketAddr pAddr = __osl_createSocketAddrFromSystem( &Addr ); in osl_getPeerAddrOfSocket() local
1241 return pAddr; in osl_getPeerAddrOfSocket()
1247 sal_Bool SAL_CALL osl_bindAddrToSocket ( oslSocket pSocket, oslSocketAddr pAddr) in osl_bindAddrToSocket() argument
1249 OSL_ASSERT( pAddr ); in osl_bindAddrToSocket()
1255 &(pAddr->m_sockaddr), in osl_bindAddrToSocket()
1264 oslSocketAddr pAddr, in osl_connectSocketTo() argument
1271 if (pAddr == NULL) /* EDESTADDRREQ */ in osl_connectSocketTo()
1280 &(pAddr->m_sockaddr), in osl_connectSocketTo()
1297 &(pAddr->m_sockaddr), in osl_connectSocketTo()
1321 &(pAddr->m_sockaddr), in osl_connectSocketTo()