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()
1083 oslHostAddr pAddr= NULL; in _osl_hostentToHostAddr() local
1148 pAddr= (oslHostAddr) malloc(sizeof(struct oslHostAddrImpl)); in _osl_hostentToHostAddr()
1149 OSL_ASSERT(pAddr); in _osl_hostentToHostAddr()
1150 if (pAddr == NULL) in _osl_hostentToHostAddr()
1157 pAddr->pHostName= cn; in _osl_hostentToHostAddr()
1158 pAddr->pSockAddr= pSockAddr; in _osl_hostentToHostAddr()
1160 return pAddr; in _osl_hostentToHostAddr()
1197 const oslSocketAddr pAddr) in osl_psz_createHostAddr() argument
1202 OSL_ASSERT(pszHostname && pAddr); in osl_psz_createHostAddr()
1203 if ((pszHostname == NULL) || (pAddr == NULL)) in osl_psz_createHostAddr()
1215 if (pAddr == NULL) in osl_psz_createHostAddr()
1222 pHostAddr->pSockAddr= osl_copySocketAddr( pAddr ); in osl_psz_createHostAddr()
1279 oslHostAddr SAL_CALL osl_createHostAddrByAddr (const oslSocketAddr pAddr) in osl_createHostAddrByAddr() argument
1281 OSL_ASSERT(pAddr); in osl_createHostAddrByAddr()
1283 if (pAddr == NULL) in osl_createHostAddrByAddr()
1286 if (pAddr->m_sockaddr.sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyInet)) in osl_createHostAddrByAddr()
1288 const struct sockaddr_in *sin= (const struct sockaddr_in *)&(pAddr->m_sockaddr); in osl_createHostAddrByAddr()
1306 oslHostAddr SAL_CALL osl_copyHostAddr (const oslHostAddr pAddr) in osl_copyHostAddr() argument
1308 OSL_ASSERT(pAddr); in osl_copyHostAddr()
1310 if (pAddr) in osl_copyHostAddr()
1311 return osl_psz_createHostAddr (pAddr->pHostName, pAddr->pSockAddr); in osl_copyHostAddr()
1332 const sal_Char* SAL_CALL osl_psz_getHostnameOfHostAddr (const oslHostAddr pAddr) in osl_psz_getHostnameOfHostAddr() argument
1334 OSL_ASSERT(pAddr); in osl_psz_getHostnameOfHostAddr()
1336 if (pAddr) in osl_psz_getHostnameOfHostAddr()
1337 return pAddr->pHostName; in osl_psz_getHostnameOfHostAddr()
1345 oslSocketAddr SAL_CALL osl_getSocketAddrOfHostAddr (const oslHostAddr pAddr) in osl_getSocketAddrOfHostAddr() argument
1347 OSL_ASSERT(pAddr); in osl_getSocketAddrOfHostAddr()
1349 if (pAddr) in osl_getSocketAddrOfHostAddr()
1350 return ((oslSocketAddr)(pAddr->pSockAddr)); in osl_getSocketAddrOfHostAddr()
1358 void SAL_CALL osl_destroyHostAddr (oslHostAddr pAddr) in osl_destroyHostAddr() argument
1360 if (pAddr) in osl_destroyHostAddr()
1362 if (pAddr->pHostName) in osl_destroyHostAddr()
1363 free (pAddr->pHostName); in osl_destroyHostAddr()
1364 if (pAddr->pSockAddr) in osl_destroyHostAddr()
1365 osl_destroySocketAddr (pAddr->pSockAddr); in osl_destroyHostAddr()
1366 free (pAddr); in osl_destroyHostAddr()
1511 struct oslHostAddrImpl *pAddr = (oslHostAddr)osl_psz_createHostAddrByName(pszHostname); in osl_psz_resolveHostname() local
1513 if (pAddr) in osl_psz_resolveHostname()
1515 oslSocketAddr SockAddr = osl_copySocketAddr(pAddr->pSockAddr); in osl_psz_resolveHostname()
1517 osl_destroyHostAddr(pAddr); in osl_psz_resolveHostname()
1589 void SAL_CALL osl_destroySocketAddr(oslSocketAddr pAddr) in osl_destroySocketAddr() argument
1591 __osl_destroySocketAddr( pAddr ); in osl_destroySocketAddr()
1597 oslAddrFamily SAL_CALL osl_getFamilyOfSocketAddr(oslSocketAddr pAddr) in osl_getFamilyOfSocketAddr() argument
1599 OSL_ASSERT(pAddr); in osl_getFamilyOfSocketAddr()
1601 if (pAddr) in osl_getFamilyOfSocketAddr()
1602 return FAMILY_FROM_NATIVE(pAddr->m_sockaddr.sa_family); in osl_getFamilyOfSocketAddr()
1610 sal_Int32 SAL_CALL osl_getInetPortOfSocketAddr(oslSocketAddr pAddr) in osl_getInetPortOfSocketAddr() argument
1612 OSL_ASSERT(pAddr); in osl_getInetPortOfSocketAddr()
1613 if( pAddr ) in osl_getInetPortOfSocketAddr()
1615 struct sockaddr_in* pSystemInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in osl_getInetPortOfSocketAddr()
1626 sal_Bool SAL_CALL osl_setInetPortOfSocketAddr(oslSocketAddr pAddr, sal_Int32 Port) in osl_setInetPortOfSocketAddr() argument
1628 OSL_ASSERT(pAddr); in osl_setInetPortOfSocketAddr()
1629 if( pAddr ) in osl_setInetPortOfSocketAddr()
1631 struct sockaddr_in* pSystemInetAddr= (struct sockaddr_in*)&(pAddr->m_sockaddr); in osl_setInetPortOfSocketAddr()
1661 oslSocketResult SAL_CALL osl_psz_getHostnameOfSocketAddr(oslSocketAddr pAddr, in osl_psz_getHostnameOfSocketAddr() argument
1664 oslHostAddr pHostAddr= (oslHostAddr )osl_createHostAddrByAddr(pAddr); in osl_psz_getHostnameOfSocketAddr()
1698 oslSocketResult SAL_CALL osl_psz_getDottedInetAddrOfSocketAddr(oslSocketAddr pAddr, in osl_psz_getDottedInetAddrOfSocketAddr() argument
1701 OSL_ASSERT(pAddr); in osl_psz_getDottedInetAddrOfSocketAddr()
1703 if( pAddr ) in osl_psz_getDottedInetAddrOfSocketAddr()
1705 struct sockaddr_in* pSystemInetAddr = ( struct sockaddr_in * ) &(pAddr->m_sockaddr); in osl_psz_getDottedInetAddrOfSocketAddr()
1727 struct sockaddr_ipx* pAddr;
1729 pAddr= (struct sockaddr_ipx*)Addr;
1731 OSL_ASSERT(pAddr);
1733 if (pAddr && (pAddr->sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyIpx)))
1735 memcpy(NetNumber, pAddr->sa_netnum, sizeof(NetNumber));
1751 struct sockaddr_ipx* pAddr;
1753 pAddr= (struct sockaddr_ipx*)Addr;
1755 OSL_ASSERT(pAddr);
1757 if (pAddr && (pAddr->sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyIpx)))
1759 memcpy(NodeNumber, pAddr->sa_nodenum, sizeof(NodeNumber));
1773 struct sockaddr_ipx* pAddr= (struct sockaddr_ipx*)Addr;
1774 OSL_ASSERT(pAddr);
1776 if (pAddr && (pAddr->sa_family == FAMILY_TO_NATIVE(osl_Socket_FamilyIpx)))
1777 return pAddr->sa_socket;
1958 oslSocketAddr pAddr; in osl_getLocalAddrOfSocket() local
1968 pAddr = __osl_createSocketAddrFromSystem( &Addr ); in osl_getLocalAddrOfSocket()
1969 return pAddr; in osl_getLocalAddrOfSocket()
2001 oslSocketAddr pAddr) in osl_bindAddrToSocket() argument
2005 OSL_ASSERT(pSocket && pAddr ); in osl_bindAddrToSocket()
2006 if ( pSocket == 0 || pAddr == 0 ) in osl_bindAddrToSocket()
2013 nRet = bind(pSocket->m_Socket, &(pAddr->m_sockaddr), sizeof(struct sockaddr)); in osl_bindAddrToSocket()
2059 oslSocketAddr pAddr, in osl_connectSocketTo() argument
2080 &(pAddr->m_sockaddr), in osl_connectSocketTo()
2101 &(pAddr->m_sockaddr), in osl_connectSocketTo()