Lines Matching refs:saSocketAddr
724 ::osl::SocketAddr saSocketAddr; in TEST_F()
731 …ASSERT_TRUE(sal_True == saSocketAddr.is( )) << "test for none parameter constructor function: chec… in TEST_F()
737 ::osl::SocketAddr saSocketAddr; in TEST_F()
740 rtl::OUString suHost = saSocketAddr.getLocalHostname( &aResult); in TEST_F()
757 ::osl::SocketAddr saSocketAddr( aHostName1, IP_PORT_HTTP1 ); in TEST_F()
758 ::osl::SocketAddr saCopySocketAddr( saSocketAddr ); in TEST_F()
768 ::osl::SocketAddr saSocketAddr( aHostName1, IP_PORT_HTTP1 ); in TEST_F()
769 oslSocketAddr psaOSLSocketAddr = saSocketAddr.getHandle( ); in TEST_F()
774 …ASSERT_TRUE(saSocketAddr.getPort( ) == IP_PORT_HTTP2) << "test for SocketAddr no copy constructor … in TEST_F()
804 ::osl::SocketAddr saSocketAddr( aHostName1, IP_PORT_HTTP1 ); in TEST_F()
805 ::osl::SocketAddr saSocketAddrCopy( saSocketAddr.getHandle( ) ); in TEST_F()
812 ::osl::SocketAddr saSocketAddr( aHostName1, IP_PORT_HTTP1 ); in TEST_F()
813 ::osl::SocketAddr saSocketAddrCopy( saSocketAddr.getHandle( ) ); in TEST_F()
816 …ASSERT_TRUE(saSocketAddr.getPort( ) != IP_PORT_HTTP2) << "test for SocketAddr copy handle construc… in TEST_F()
822 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP ); in TEST_F()
823 printUString(saSocketAddr.getHostname( ), "ctors_hostname_port_001:getHostname"); in TEST_F()
825 ASSERT_TRUE(saSocketAddr.is( ) == sal_True && in TEST_F()
826 ( saSocketAddr.getPort( ) == IP_PORT_FTP )/*&& in TEST_F()
834 ::osl::SocketAddr saSocketAddr( aHostIpInval1, IP_PORT_MYPORT2 ); in TEST_F()
836 …ASSERT_TRUE(sal_False == saSocketAddr.is( )) << "test for SocketAddr tcpip specific constructor fu… in TEST_F()
850 ::osl::SocketAddr saSocketAddr; in TEST_F()
852 …ASSERT_TRUE(sal_True == saSocketAddr.is( )) << "test for is() function: create an unknown type soc… in TEST_F()
857 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_INVAL ); in TEST_F()
859 …ASSERT_TRUE(sal_True == saSocketAddr.is( )) << "test for is() function: create a tcp-ip socket usi… in TEST_F()
864 ::osl::SocketAddr saSocketAddr( aHostIpInval1, IP_PORT_MYPORT ); in TEST_F()
866 …ASSERT_TRUE(sal_True != saSocketAddr.is( )) << "test for is() function: create a tcp-ip socket usi… in TEST_F()
887 ::osl::SocketAddr saSocketAddr( aHostIp4, IP_PORT_FTP ); in TEST_F()
898 ::osl::SocketAddr saSocketAddr( aHostIp4, IP_PORT_FTP ); in TEST_F()
899 rtl::OUString suResult = saSocketAddr.getHostname( 0 ); in TEST_F()
919 ::osl::SocketAddr saSocketAddr( aHostName1, IP_PORT_FTP ); in TEST_F()
920 sal_Bool bOK = saSocketAddr.setHostname( suHostname ); in TEST_F()
923 rtl::OUString suResult = saSocketAddr.getHostname( &aResult ); in TEST_F()
951 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP ); in TEST_F()
953 …ASSERT_TRUE(IP_PORT_FTP == saSocketAddr.getPort( )) << "test for getPort() function: get a normal … in TEST_F()
958 ::osl::SocketAddr saSocketAddr( aHostIp2, IP_PORT_INVAL ); in TEST_F()
962 …ASSERT_TRUE(saSocketAddr.getPort( )>=1 && saSocketAddr.getPort( ) <= 65535) << "test for getPort( … in TEST_F()
968 ::osl::SocketAddr saSocketAddr( aHostIpInval1, IP_PORT_MYPORT ); in TEST_F()
970 …ASSERT_TRUE(saSocketAddr.getPort( ) == OSL_INVALID_PORT) << "test for getPort( ) function: give an… in TEST_F()
986 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP ); in TEST_F()
987 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_TELNET ); in TEST_F()
990 …( IP_PORT_TELNET == saSocketAddr.getPort( ) )) << "test for setPort() function: modify a port numb… in TEST_F()
1003 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP ); in TEST_F()
1004 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_ZERO ); in TEST_F()
1009 sal_Bool bOK1 = sSocket.bind( saSocketAddr ); in TEST_F()
1021 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP); in TEST_F()
1022 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_INVAL ); in TEST_F()
1026 …ASSERT_TRUE(( ( 1 <= saSocketAddr.getPort( ) ) && ( 65535 >= saSocketAddr.getPort( ) ) &&( bOK == … in TEST_F()
1033 ::osl::SocketAddr saSocketAddr( aHostIpInval1, IP_PORT_FTP); in TEST_F()
1034 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_MYPORT ); in TEST_F()
1060 ::osl::SocketAddr saSocketAddr( aHostIp2, IP_PORT_FTP ); in TEST_F()
1061 saSocketAddr.setAddr( UStringIPToByteSequence( aHostIp1 ) ); in TEST_F()
1062 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( 0 ); in TEST_F()
1083 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_FTP ); in TEST_F()
1084 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( &SocketResult ); in TEST_F()
1109 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_TELNET); in TEST_F()
1112 saSocketAddrEqual = saSocketAddr; in TEST_F()
1125 ::osl::SocketAddr saSocketAddr( aHostIp3, IP_PORT_TELNET); in TEST_F()
1128 saSocketAddrEqual = saSocketAddr; in TEST_F()
1131 saSocketAddr.setPort( IP_PORT_HTTP2 ); in TEST_F()
1138 const ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_TELNET); in TEST_F() local
1141 saSocketAddrEqual = saSocketAddr; in TEST_F()
1153 const ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_TELNET); in TEST_F() local
1156 saSocketAddrEqual = saSocketAddr; in TEST_F()
1159 …ASSERT_TRUE(IP_PORT_HTTP1 != saSocketAddr.getPort( )) << "test for operator_equal_const() function… in TEST_F()
1178 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_TELNET); in TEST_F()
1181 …ASSERT_TRUE(sal_True == ( saSocketAddrequal == saSocketAddr.getHandle( ) )) << "test for operator_… in TEST_F()
1186 ::osl::SocketAddr saSocketAddr( aHostIp2, IP_PORT_FTP); in TEST_F()
1189 …ASSERT_TRUE(sal_False == ( saSocketAddrequal == saSocketAddr.getHandle( ) )) << "test for operator… in TEST_F()
1216 ::osl::SocketAddr saSocketAddr( aHostName3, IP_PORT_MYPORT4 ); in TEST_F()
1217 oslSocketAddr poslSocketAddr = saSocketAddr.getHandle( ); in TEST_F()
1219 sal_Bool bOK = ( saSocketAddr == poslSocketAddr ); in TEST_F()
1283 ::osl::SocketAddr saSocketAddr; in TEST_F()
1284 ::osl::SocketAddr::resolveHostname( aHostIp1, saSocketAddr ); in TEST_F()
1285 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( 0 ); in TEST_F()
2960 ::osl::SocketAddr saSocketAddr( aHostIp1, IP_PORT_MYPORT4 );
2961 asSocket.bind( saSocketAddr );