Lines Matching refs:pAddr
514 oslSocketAddr pAddr = (oslSocketAddr) rtl_allocateZeroMemory( sizeof( struct oslSocketAddrImpl )); in __osl_createSocketAddr() local
518 return pAddr; in __osl_createSocketAddr()
524 oslSocketAddr pAddr; in __osl_createSocketAddrWithFamily() local
528 pAddr = __osl_createSocketAddr(); in __osl_createSocketAddrWithFamily()
533 struct sockaddr_in* pInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in __osl_createSocketAddrWithFamily()
541 pAddr->m_sockaddr.sa_family = FAMILY_TO_NATIVE(family); in __osl_createSocketAddrWithFamily()
543 return pAddr; in __osl_createSocketAddrWithFamily()
548 oslSocketAddr pAddr = __osl_createSocketAddr(); in __osl_createSocketAddrFromSystem() local
549 memcpy( &(pAddr->m_sockaddr), pSystemSockAddr, sizeof( struct sockaddr ) ); in __osl_createSocketAddrFromSystem()
550 return pAddr; in __osl_createSocketAddrFromSystem()
566 oslSocketAddr pAddr = 0; in osl_createEmptySocketAddr() local
571 pAddr = __osl_createSocketAddrWithFamily(Family, 0 , htonl(INADDR_ANY) ); in osl_createEmptySocketAddr()
575 pAddr = __osl_createSocketAddrWithFamily( Family , 0 , 0 ); in osl_createEmptySocketAddr()
578 return pAddr; in osl_createEmptySocketAddr()
643 oslSocketAddr pAddr; in osl_createInetBroadcastAddr() local
685 pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, htons(Port), nAddr ); in osl_createInetBroadcastAddr()
686 return pAddr; in osl_createInetBroadcastAddr()
725 oslSocketAddr pAddr = 0; in osl_psz_createInetSocketAddr() local
730 pAddr = __osl_createSocketAddrWithFamily( osl_Socket_FamilyInet, htons(Port) , Addr ); in osl_psz_createInetSocketAddr()
732 return pAddr; in osl_psz_createInetSocketAddr()
738 oslSocketResult SAL_CALL osl_setAddrOfSocketAddr( oslSocketAddr pAddr, sal_Sequence *pByteSeq ) in osl_setAddrOfSocketAddr() argument
742 OSL_ASSERT( pAddr ); in osl_setAddrOfSocketAddr()
745 if( pAddr && pByteSeq ) in osl_setAddrOfSocketAddr()
749 OSL_ASSERT( pAddr->m_sockaddr.sa_family == FAMILY_TO_NATIVE( osl_Socket_FamilyInet ) ); in osl_setAddrOfSocketAddr()
752 pSystemInetAddr = (struct sockaddr_in * ) &(pAddr->m_sockaddr); in osl_setAddrOfSocketAddr()
762 oslSocketResult SAL_CALL osl_getAddrOfSocketAddr( oslSocketAddr pAddr, sal_Sequence **ppByteSeq ) in osl_getAddrOfSocketAddr() argument
766 OSL_ASSERT( pAddr ); in osl_getAddrOfSocketAddr()
769 if( pAddr && ppByteSeq ) in osl_getAddrOfSocketAddr()
771 struct sockaddr_in * pSystemInetAddr = (struct sockaddr_in * ) &(pAddr->m_sockaddr); in osl_getAddrOfSocketAddr()
1074 oslHostAddr pAddr= NULL; in _osl_hostentToHostAddr() local
1129 pAddr= (oslHostAddr) malloc(sizeof(struct oslHostAddrImpl)); in _osl_hostentToHostAddr()
1130 OSL_ASSERT(pAddr); in _osl_hostentToHostAddr()
1131 if (pAddr == NULL) in _osl_hostentToHostAddr()
1138 pAddr->pHostName= cn; in _osl_hostentToHostAddr()
1139 pAddr->pSockAddr= pSockAddr; in _osl_hostentToHostAddr()
1141 return pAddr; in _osl_hostentToHostAddr()
1177 const oslSocketAddr pAddr) in osl_psz_createHostAddr() argument
1182 OSL_ASSERT(pszHostname && pAddr); in osl_psz_createHostAddr()
1183 if ((pszHostname == NULL) || (pAddr == NULL)) in osl_psz_createHostAddr()
1202 pHostAddr->pSockAddr= osl_copySocketAddr( pAddr ); in osl_psz_createHostAddr()
1259 oslHostAddr SAL_CALL osl_createHostAddrByAddr (const oslSocketAddr pAddr) in osl_createHostAddrByAddr() argument
1261 OSL_ASSERT(pAddr); in osl_createHostAddrByAddr()
1263 if (pAddr == NULL) in osl_createHostAddrByAddr()
1266 if (pAddr->m_sockaddr.sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyInet)) in osl_createHostAddrByAddr()
1268 const struct sockaddr_in *sin= (const struct sockaddr_in *)&(pAddr->m_sockaddr); in osl_createHostAddrByAddr()
1286 oslHostAddr SAL_CALL osl_copyHostAddr (const oslHostAddr pAddr) in osl_copyHostAddr() argument
1288 OSL_ASSERT(pAddr); in osl_copyHostAddr()
1290 if (pAddr) in osl_copyHostAddr()
1291 return osl_psz_createHostAddr (pAddr->pHostName, pAddr->pSockAddr); in osl_copyHostAddr()
1312 const sal_Char* SAL_CALL osl_psz_getHostnameOfHostAddr (const oslHostAddr pAddr) in osl_psz_getHostnameOfHostAddr() argument
1314 OSL_ASSERT(pAddr); in osl_psz_getHostnameOfHostAddr()
1316 if (pAddr) in osl_psz_getHostnameOfHostAddr()
1317 return pAddr->pHostName; in osl_psz_getHostnameOfHostAddr()
1325 oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr (const oslHostAddr pAddr) in osl_getSocketAddrOfHostAddr() argument
1327 OSL_ASSERT(pAddr); in osl_getSocketAddrOfHostAddr()
1329 if (pAddr) in osl_getSocketAddrOfHostAddr()
1330 return ((oslSocketAddr)(pAddr->pSockAddr)); in osl_getSocketAddrOfHostAddr()
1338 void SAL_CALL osl_destroyHostAddr (oslHostAddr pAddr) in osl_destroyHostAddr() argument
1340 if (pAddr) in osl_destroyHostAddr()
1342 if (pAddr->pHostName) in osl_destroyHostAddr()
1343 free (pAddr->pHostName); in osl_destroyHostAddr()
1344 if (pAddr->pSockAddr) in osl_destroyHostAddr()
1345 osl_destroySocketAddr (pAddr->pSockAddr); in osl_destroyHostAddr()
1346 free (pAddr); in osl_destroyHostAddr()
1490 struct oslHostAddrImpl *pAddr = (oslHostAddr)osl_psz_createHostAddrByName(pszHostname); in osl_psz_resolveHostname() local
1492 if (pAddr) in osl_psz_resolveHostname()
1494 oslSocketAddr SockAddr = osl_copySocketAddr(pAddr->pSockAddr); in osl_psz_resolveHostname()
1496 osl_destroyHostAddr(pAddr); in osl_psz_resolveHostname()
1568 void SAL_CALL osl_destroySocketAddr(oslSocketAddr pAddr) in osl_destroySocketAddr() argument
1570 __osl_destroySocketAddr( pAddr ); in osl_destroySocketAddr()
1576 oslAddrFamily SAL_CALL osl_getFamilyOfSocketAddr(oslSocketAddr pAddr) in osl_getFamilyOfSocketAddr() argument
1578 OSL_ASSERT(pAddr); in osl_getFamilyOfSocketAddr()
1580 if (pAddr) in osl_getFamilyOfSocketAddr()
1581 return FAMILY_FROM_NATIVE(pAddr->m_sockaddr.sa_family); in osl_getFamilyOfSocketAddr()
1589 sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(oslSocketAddr pAddr) in osl_getInetPortOfSocketAddr() argument
1591 OSL_ASSERT(pAddr); in osl_getInetPortOfSocketAddr()
1592 if( pAddr ) in osl_getInetPortOfSocketAddr()
1594 struct sockaddr_in* pSystemInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in osl_getInetPortOfSocketAddr()
1605 sal_Bool SAL_CALL osl_setInetPortOfSocketAddr(oslSocketAddr pAddr, sal_Int32 Port) in osl_setInetPortOfSocketAddr() argument
1607 OSL_ASSERT(pAddr); in osl_setInetPortOfSocketAddr()
1608 if( pAddr ) in osl_setInetPortOfSocketAddr()
1610 struct sockaddr_in* pSystemInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in osl_setInetPortOfSocketAddr()
1640 oslSocketResult SAL_CALL osl_psz_getHostnameOfSocketAddr(oslSocketAddr pAddr, in osl_psz_getHostnameOfSocketAddr() argument
1643 oslHostAddr pHostAddr= (oslHostAddr )osl_createHostAddrByAddr(pAddr); in osl_psz_getHostnameOfSocketAddr()
1677 oslSocketResult SAL_CALL osl_psz_getDottedInetAddrOfSocketAddr(oslSocketAddr pAddr, in osl_psz_getDottedInetAddrOfSocketAddr() argument
1680 OSL_ASSERT(pAddr); in osl_psz_getDottedInetAddrOfSocketAddr()
1682 if( pAddr ) in osl_psz_getDottedInetAddrOfSocketAddr()
1684 struct sockaddr_in* pSystemInetAddr = ( struct sockaddr_in * ) &(pAddr->m_sockaddr); in osl_psz_getDottedInetAddrOfSocketAddr()
1706 struct sockaddr_ipx* pAddr;
1708 pAddr= (struct sockaddr_ipx*)Addr;
1710 OSL_ASSERT(pAddr);
1712 if (pAddr && (pAddr->sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyIpx)))
1714 memcpy(NetNumber, pAddr->sa_netnum, sizeof(NetNumber));
1730 struct sockaddr_ipx* pAddr;
1732 pAddr= (struct sockaddr_ipx*)Addr;
1734 OSL_ASSERT(pAddr);
1736 if (pAddr && (pAddr->sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyIpx)))
1738 memcpy(NodeNumber, pAddr->sa_nodenum, sizeof(NodeNumber));
1752 struct sockaddr_ipx* pAddr= (struct sockaddr_ipx*)Addr;
1753 OSL_ASSERT(pAddr);
1755 if (pAddr && (pAddr->sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyIpx)))
1756 return pAddr->sa_socket;
1935 oslSocketAddr pAddr; in osl_getLocalAddrOfSocket() local
1945 pAddr = __osl_createSocketAddrFromSystem( &Addr ); in osl_getLocalAddrOfSocket()
1946 return pAddr; in osl_getLocalAddrOfSocket()
1978 oslSocketAddr pAddr) in osl_bindAddrToSocket() argument
1982 OSL_ASSERT(pSocket && pAddr ); in osl_bindAddrToSocket()
1983 if ( pSocket == 0 || pAddr == 0 ) in osl_bindAddrToSocket()
1990 nRet = bind(pSocket->m_Socket, &(pAddr->m_sockaddr), sizeof(struct sockaddr)); in osl_bindAddrToSocket()
2036 oslSocketAddr pAddr, in osl_connectSocketTo() argument
2057 &(pAddr->m_sockaddr), in osl_connectSocketTo()
2078 &(pAddr->m_sockaddr), in osl_connectSocketTo()