Lines Matching refs:saSocketAddr

97 			::osl::SocketAddr saSocketAddr;  in ctors_none()
105 sal_True == saSocketAddr.is( ) ); in ctors_none()
111 ::osl::SocketAddr saSocketAddr; in ctors_none_000()
114 rtl::OUString suHost = saSocketAddr.getLocalHostname( &aResult); in ctors_none_000()
131 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in ctors_copy()
132 ::osl::SocketAddr saCopySocketAddr( saSocketAddr ); in ctors_copy()
143 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in ctors_copy_no_001()
144 oslSocketAddr psaOSLSocketAddr = saSocketAddr.getHandle( ); in ctors_copy_no_001()
150 saSocketAddr.getPort( ) == IP_PORT_HTTP2 ); in ctors_copy_no_001()
182 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in ctors_copy_handle_001()
183 ::osl::SocketAddr saSocketAddrCopy( saSocketAddr.getHandle( ) ); in ctors_copy_handle_001()
191 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in ctors_copy_handle_002()
192 ::osl::SocketAddr saSocketAddrCopy( saSocketAddr.getHandle( ) ); in ctors_copy_handle_002()
196 saSocketAddr.getPort( ) != IP_PORT_HTTP2 ); in ctors_copy_handle_002()
202 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in ctors_hostname_port_001()
203 printUString( saSocketAddr.getHostname( ), "ctors_hostname_port_001:getHostname"); in ctors_hostname_port_001()
206 saSocketAddr.is( ) == sal_True && in ctors_hostname_port_001()
207 ( saSocketAddr.getPort( ) == IP_PORT_FTP )/*&& in ctors_hostname_port_001()
215 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("123.345.67.89"), IP_PORT_MYPORT2 ); in ctors_hostname_port_002()
217 …: using an invalid IP address, the socketaddr ctors should fail", sal_False == saSocketAddr.is( )); in ctors_hostname_port_002()
243 ::osl::SocketAddr saSocketAddr; in is_001()
246 sal_True == saSocketAddr.is( ) ); in is_001()
251 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_INVAL ); in is_002()
254 sal_True == saSocketAddr.is( ) ); in is_002()
259 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("123.345.67.89"), IP_PORT_MYPORT ); in is_003()
262 sal_True != saSocketAddr.is( ) ); in is_003()
291 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.107"), IP_PORT_FTP ); in getHostname_000()
292 rtl::OUString suResult = saSocketAddr.getHostname( 0 ); in getHostname_000()
303 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.107"), IP_PORT_FTP ); in getHostname_001()
304 rtl::OUString suResult = saSocketAddr.getHostname( 0 ); in getHostname_001()
326 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_FTP ); in getHostname_002()
327 sal_Bool bOK = saSocketAddr.setHostname( suHostname ); in getHostname_002()
330 rtl::OUString suResult = saSocketAddr.getHostname( &aResult ); in getHostname_002()
366 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in getPort_001()
369 IP_PORT_FTP == saSocketAddr.getPort( ) ); in getPort_001()
374 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_INVAL ); in getPort_002()
379 saSocketAddr.getPort( )>=1 && saSocketAddr.getPort( ) <= 65535 ); in getPort_002()
386 ::osl::SocketAddr saSocketAddr( suInvalidIP, IP_PORT_MYPORT ); in getPort_003()
389 saSocketAddr.getPort( ) == OSL_INVALID_PORT ); in getPort_003()
412 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in setPort_001()
413 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_TELNET ); in setPort_001()
417 ( IP_PORT_TELNET == saSocketAddr.getPort( ) ) ); in setPort_001()
430 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in setPort_002()
431 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_ZERO ); in setPort_002()
436 sal_Bool bOK1 = sSocket.bind( saSocketAddr ); in setPort_002()
449 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP); in setPort_003()
450 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_INVAL ); in setPort_003()
455 …( ( 1 <= saSocketAddr.getPort( ) ) && ( 65535 >= saSocketAddr.getPort( ) ) &&( bOK == sal_True ) )… in setPort_003()
462 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("123.345.67.89"), IP_PORT_FTP); in setPort_004()
463 sal_Bool bOK = saSocketAddr.setPort( IP_PORT_MYPORT ); in setPort_004()
499 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_FTP ); in setAddr_001()
500 saSocketAddr.setAddr( UStringIPToByteSequence( rtl::OUString::createFromAscii("127.0.0.1") ) ); in setAddr_001()
501 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( 0 ); in setAddr_001()
530 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_FTP ); in getAddr_001()
531 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( &SocketResult ); in getAddr_001()
563 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in operator_equal_001()
566 saSocketAddrEqual = saSocketAddr; in operator_equal_001()
581 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.199"), IP_PORT_TELNET); in operator_equal_002()
584 saSocketAddrEqual = saSocketAddr; in operator_equal_002()
588 saSocketAddr.setPort( IP_PORT_HTTP2 ); in operator_equal_002()
596 …const ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in operator_equal_const_001() local
599 saSocketAddrEqual = saSocketAddr; in operator_equal_const_001()
613 …const ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in operator_equal_const_002() local
616 saSocketAddrEqual = saSocketAddr; in operator_equal_const_002()
620 IP_PORT_HTTP1 != saSocketAddr.getPort( ) ); in operator_equal_const_002()
640 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("127.0.0.1"), IP_PORT_TELNET); in operator_is_equal_001()
644 sal_True == ( saSocketAddrequal == saSocketAddr.getHandle( ) ) ); in operator_is_equal_001()
649 ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("129.158.217.202"), IP_PORT_FTP); in operator_is_equal_002()
653 sal_False == ( saSocketAddrequal == saSocketAddr.getHandle( ) ) ); in operator_is_equal_002()
693 …::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("deuce.PRC.Sun.COM"), IP_PORT_MYPOR… in getSocketAddrHandle_002()
694 oslSocketAddr poslSocketAddr = saSocketAddr.getHandle( ); in getSocketAddrHandle_002()
696 sal_Bool bOK = ( saSocketAddr == poslSocketAddr ); in getSocketAddrHandle_002()
773 ::osl::SocketAddr saSocketAddr; in resolveHostname_001()
774 ::osl::SocketAddr::resolveHostname( rtl::OUString::createFromAscii("127.0.0.1"), saSocketAddr ); in resolveHostname_001()
775 ::rtl::ByteSequence bsSocketAddr = saSocketAddr.getAddr( 0 ); in resolveHostname_001()
852 … ::osl::SocketAddr saSocketAddr( rtl::OUString::createFromAscii("localhost"), IP_PORT_HTTP1 ); in getFamilyOfSocketAddr_001()
853 oslSocketAddr psaOSLSocketAddr = saSocketAddr.getHandle( ); in getFamilyOfSocketAddr_001()