Lines Matching refs:saSocketAddr
98 ::osl::SocketAddr saSocketAddr; in TEST_F()
105 …ASSERT_TRUE(sal_True == saSocketAddr.is( )) << "test for none parameter constructor function: chec… in TEST_F()
111 ::osl::SocketAddr saSocketAddr; in TEST_F()
114 rtl::OUString suHost = saSocketAddr.getLocalHostname( &aResult); in TEST_F()
131 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in TEST_F()
132 ::osl::SocketAddr saCopySocketAddr( saSocketAddr ); in TEST_F()
142 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in TEST_F()
143 oslSocketAddr psaOSLSocketAddr = saSocketAddr.getHandle( ); in TEST_F()
148 …ASSERT_TRUE(saSocketAddr.getPort( ) == IP_PORT_HTTP2) << "test for SocketAddr no copy constructor … in TEST_F()
178 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in TEST_F()
179 ::osl::SocketAddr saSocketAddrCopy( saSocketAddr.getHandle( ) ); in TEST_F()
186 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in TEST_F()
187 ::osl::SocketAddr saSocketAddrCopy( saSocketAddr.getHandle( ) ); in TEST_F()
190 …ASSERT_TRUE(saSocketAddr.getPort( ) != IP_PORT_HTTP2) << "test for SocketAddr copy handle construc… in TEST_F()
196 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in TEST_F()
197 printUString( saSocketAddr.getHostname( ), "ctors_hostname_port_001:getHostname"); in TEST_F()
199 ASSERT_TRUE(saSocketAddr.is( ) == sal_True && in TEST_F()
200 ( saSocketAddr.getPort( ) == IP_PORT_FTP )/*&& in TEST_F()
208 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("123.345.67.89"), IP_PORT_MYPORT2 ); in TEST_F()
210 …ASSERT_TRUE(sal_False == saSocketAddr.is( )) << "test for SocketAddr tcpip specific constructor fu… in TEST_F()
225 ::osl::SocketAddr saSocketAddr; in TEST_F()
227 …ASSERT_TRUE(sal_True == saSocketAddr.is( )) << "test for is() function: create an unknown type soc… in TEST_F()
232 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_INVAL ); in TEST_F()
234 …ASSERT_TRUE(sal_True == saSocketAddr.is( )) << "test for is() function: create a tcp-ip socket usi… in TEST_F()
239 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("123.345.67.89"), IP_PORT_MYPORT ); in TEST_F()
241 …ASSERT_TRUE(sal_True != saSocketAddr.is( )) << "test for is() function: create a tcp-ip socket usi… in TEST_F()
262 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.107"), IP_PORT_FTP ); in TEST_F()
263 rtl::OUString suResult = saSocketAddr.getHostname( 0 ); in TEST_F()
274 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.107"), IP_PORT_FTP ); in TEST_F()
275 rtl::OUString suResult = saSocketAddr.getHostname( 0 ); in TEST_F()
297 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_FTP ); in TEST_F()
298 sal_Bool bOK = saSocketAddr.setHostname( suHostname ); in TEST_F()
301 rtl::OUString suResult = saSocketAddr.getHostname( &aResult ); in TEST_F()
330 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in TEST_F()
332 …ASSERT_TRUE(IP_PORT_FTP == saSocketAddr.getPort( )) << "test for getPort() function: get a normal … in TEST_F()
337 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_INVAL ); in TEST_F()
341 …ASSERT_TRUE(saSocketAddr.getPort( )>=1 && saSocketAddr.getPort( ) <= 65535) << "test for getPort( … in TEST_F()
348 ::osl::SocketAddr saSocketAddr( suInvalidIP, IP_PORT_MYPORT ); in TEST_F()
350 …ASSERT_TRUE(saSocketAddr.getPort( ) == OSL_INVALID_PORT) << "test for getPort( ) function: give an… in TEST_F()
366 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in TEST_F()
367 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_TELNET ); in TEST_F()
370 …( IP_PORT_TELNET == saSocketAddr.getPort( ) )) << "test for setPort() function: modify a port numb… in TEST_F()
383 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in TEST_F()
384 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_ZERO ); in TEST_F()
389 sal_Bool bOK1 = sSocket.bind( saSocketAddr ); in TEST_F()
401 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP); in TEST_F()
402 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_INVAL ); in TEST_F()
406 …ASSERT_TRUE(( ( 1 <= saSocketAddr.getPort( ) ) && ( 65535 >= saSocketAddr.getPort( ) ) &&( bOK == … in TEST_F()
413 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("123.345.67.89"), IP_PORT_FTP); in TEST_F()
414 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_MYPORT ); in TEST_F()
440 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_FTP ); in TEST_F()
441 … saSocketAddr.setAddr( UStringIPToByteSequence( rtl::OUString::createFromAscii("127.0.0.1") ) ); in TEST_F()
442 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( 0 ); in TEST_F()
464 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in TEST_F()
465 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( &SocketResult ); in TEST_F()
491 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in TEST_F()
494 saSocketAddrEqual = saSocketAddr; in TEST_F()
508 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.199"), IP_PORT_TELNET); in TEST_F()
511 saSocketAddrEqual = saSocketAddr; in TEST_F()
514 saSocketAddr.setPort( IP_PORT_HTTP2 ); in TEST_F()
521 …const ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in TEST_F() local
524 saSocketAddrEqual = saSocketAddr; in TEST_F()
537 …const ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in TEST_F() local
540 saSocketAddrEqual = saSocketAddr; in TEST_F()
543 …ASSERT_TRUE(IP_PORT_HTTP1 != saSocketAddr.getPort( )) << "test for operator_equal_const() function… in TEST_F()
562 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in TEST_F()
565 …ASSERT_TRUE(sal_True == ( saSocketAddrequal == saSocketAddr.getHandle( ) )) << "test for operator_… in TEST_F()
570 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_FTP); in TEST_F()
573 …ASSERT_TRUE(sal_False == ( saSocketAddrequal == saSocketAddr.getHandle( ) )) << "test for operator… in TEST_F()
600 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("deuce.PRC.Sun.COM"), IP_PORT_MYPOR… in TEST_F()
601 oslSocketAddr poslSocketAddr = saSocketAddr.getHandle( ); in TEST_F()
603 sal_Bool bOK = ( saSocketAddr == poslSocketAddr ); in TEST_F()
667 ::osl::SocketAddr saSocketAddr; in TEST_F()
668 … ::osl::SocketAddr::resolveHostname( rtl::OUString::createFromAscii("127.0.0.1"), saSocketAddr ); in TEST_F()
669 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( 0 ); in TEST_F()
729 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in TEST_F()
730 oslSocketAddr psaOSLSocketAddr = saSocketAddr.getHandle( ); in TEST_F()