Lines Matching refs:sSocket
186 ::osl::Socket sSocket( sHandle ); in ctors_acquire()
189 osl_Socket_TypeStream == sSocket.getType( ) ); in ctors_acquire()
195 ::osl::Socket sSocket( sHandle, SAL_NO_ACQUIRE ); in ctors_no_acquire()
198 osl_Socket_TypeStream == sSocket.getType( ) ); in ctors_no_acquire()
203 ::osl::Socket sSocket( sHandle ); in ctors_copy_ctor()
205 ::osl::Socket copySocket( sSocket ); in ctors_copy_ctor()
227 ::osl::Socket sSocket( sHandleIpx ); //, SAL_NO_ACQUIRE ); in ctors_family_Ipx()
228 t_print("#Type is %d \n", sSocket.getType( ) ); in ctors_family_Ipx()
231 osl_Socket_TypeStream == sSocket.getType( ) ); in ctors_family_Ipx()
278 ::osl::Socket sSocket(sHandle); in operators_assignment_handle()
279 ::osl::Socket assignSocket = sSocket.getHandle(); in operators_assignment_handle()
287 ::osl::Socket sSocket( sHandle ); in operators_assignment()
288 ::osl::Socket assignSocket = sSocket; in operators_assignment()
297 ::osl::Socket sSocket( sHandle ); in operators_equal_handle_001()
298 ::osl::Socket equalSocket = sSocket; in operators_equal_handle_001()
315 ::osl::Socket sSocket( sHandle ); in operators_equal_001()
317 ::osl::Socket equalSocket( sSocket ); in operators_equal_001()
320 equalSocket == sSocket ); in operators_equal_001()
325 ::osl::Socket sSocket( sHandle ); in operators_equal_002()
330 !( equalSocket == sSocket ) ); in operators_equal_002()
368 ::osl::Socket sSocket(sHandle); in close_001()
369 sSocket.close(); in close_001()
372 sSocket.getHandle() == sHandle ); in close_001()
439 ::osl::Socket sSocket(sHandle); in getLocalAddr_001()
443 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in getLocalAddr_001()
445 sal_Bool bOK1 = sSocket.bind( saBindSocketAddr ); in getLocalAddr_001()
446 …::rtl::OUString suError1 = ::rtl::OUString::createFromAscii("Socket bind fail:") + sSocket.getErro… in getLocalAddr_001()
449 sSocket.getLocalAddr( saLocalSocketAddr ); in getLocalAddr_001()
451 sal_Bool bOK = compareUString( saLocalSocketAddr.getHostname( 0 ), sSocket.getLocalHost() ) ; in getLocalAddr_001()
487 ::osl::Socket sSocket(sHandle); in getLocalPort_001()
491 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in getLocalPort_001()
493 sal_Bool bOK1 = sSocket.bind( saBindSocketAddr ); in getLocalPort_001()
494 …::rtl::OUString suError1 = ::rtl::OUString::createFromAscii("Socket bind fail:") + sSocket.getErro… in getLocalPort_001()
496 sal_Bool bOK = ( IP_PORT_MYPORT7 == sSocket.getLocalPort( ) ); in getLocalPort_001()
514 ::osl::Socket sSocket(sHandle); in getLocalPort_002()
515 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); // sal_True); in getLocalPort_002()
516 sSocket.bind( saBindSocketAddr ); in getLocalPort_002()
518 ::rtl::OUString suError = outputError(::rtl::OUString::valueOf(sSocket.getLocalPort( )), in getLocalPort_002()
521 sal_Bool bOK = ( OSL_INVALID_PORT == sSocket.getLocalPort( ) ); in getLocalPort_002()
533 ::osl::Socket sSocket(sHandle); in getLocalPort_003()
536 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in getLocalPort_003()
538 sal_Bool bOK1 = sSocket.bind( saBindSocketAddr ); in getLocalPort_003()
539 …::rtl::OUString suError1 = ::rtl::OUString::createFromAscii("Socket bind fail:") + sSocket.getErro… in getLocalPort_003()
541 ::rtl::OUString suError = outputError(::rtl::OUString::valueOf(sSocket.getLocalPort( )), in getLocalPort_003()
544 sal_Bool bOK = ( sSocket.getLocalPort( ) >= 1 && sSocket.getLocalPort( ) <= 65535); in getLocalPort_003()
584 ::osl::Socket sSocket(sHandle); in getLocalHost_001()
588 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in getLocalHost_001()
590 sal_Bool bOK1 = sSocket.bind( saBindSocketAddr ); in getLocalHost_001()
591 …::rtl::OUString suError1 = ::rtl::OUString::createFromAscii("Socket bind fail:") + sSocket.getErro… in getLocalHost_001()
596 bOK = compareUString( sSocket.getLocalHost( ), getThisHostname( ) ) ; in getLocalHost_001()
597 suError = outputError(sSocket.getLocalHost( ), getThisHostname( ), in getLocalHost_001()
602 bRes1 = compareUString( sSocket.getLocalHost( ), aUString ) ; in getLocalHost_001()
603 bRes2 = compareUString( sSocket.getLocalHost( ), saBindSocketAddr.getHostname(0) ) ; in getLocalHost_001()
605 …suError = outputError(sSocket.getLocalHost( ), aUString, "test for getLocalHost function: create l… in getLocalHost_001()
612 ::osl::Socket sSocket(sHandle); in getLocalHost_002()
616 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in getLocalHost_002()
617 sSocket.bind( saBindSocketAddr ); in getLocalHost_002()
619 sal_Bool bOK = compareUString( sSocket.getLocalHost( ), rtl::OUString::createFromAscii("") ) ; in getLocalHost_002()
620 …::rtl::OUString suError = outputError(sSocket.getLocalHost( ), rtl::OUString::createFromAscii(""),… in getLocalHost_002()
726 ::osl::Socket sSocket(sHandle); in bind_001()
730 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in bind_001()
731 sal_Bool bOK1 = sSocket.bind( saBindSocketAddr ); in bind_001()
734 sal_Bool bOK2 = compareUString( sSocket.getLocalHost( ), saBindSocketAddr.getHostname( ) ) ; in bind_001()
736 sSocket.close(); in bind_001()
742 ::osl::Socket sSocket(sHandle); in bind_002()
746 sSocket.setOption( osl_Socket_OptionReuseAddr, 1); // sal_True); in bind_002()
747 sal_Bool bOK1 = sSocket.bind( saBindSocketAddr ); in bind_002()
748 sal_Bool bOK2 = compareUString( sSocket.getLocalHost( ), getThisHostname( ) ) ; in bind_002()
914 ::osl::Socket sSocket(sHandle); in getType_001()
917 osl_Socket_TypeStream == sSocket.getType( ) ); in getType_001()
923 ::osl::Socket sSocket(sHandle); in getType_002()
926 osl_Socket_TypeDgram == sSocket.getType( ) ); in getType_002()
941 ::osl::Socket sSocket(sHandle); in getType_003()
944 osl_Socket_TypeRaw == sSocket.getType( ) ); in getType_003()
994 ::osl::Socket sSocket(sHandle); in getOption_001()
997 sSocket.getOption( osl_Socket_OptionType, pType, sizeof ( sal_Int32 ) ); in getOption_001()
1011 ::osl::Socket sSocket(sHandle); in getOption_004()
1014 … sal_Int32 nRes = sSocket.getOption( osl_Socket_OptionInvalid, pbDontRoute, sizeof ( sal_Bool ) ); in getOption_004()
1024 ::osl::Socket sSocket(sHandle); in getOption_simple_001()
1026 sal_Bool bOK = ( sal_False == sSocket.getOption( osl_Socket_OptionDontRoute ) ); in getOption_simple_001()
1035 ::osl::Socket sSocket(sHandle); in getOption_simple_002()
1037 sal_Bool bOK = ( sal_False == sSocket.getOption( osl_Socket_OptionDebug ) ); in getOption_simple_002()
1313 ::osl::Socket sSocket(sHandle); in clearError_001()
1316 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in clearError_001()
1317 sSocket.bind( saBindSocketAddr );//build an error "osl_Socket_E_AddrNotAvail" in clearError_001()
1318 oslSocketError seBind = sSocket.getError( ); in clearError_001()
1319 sSocket.clearError( ); in clearError_001()
1322 osl_Socket_E_None == sSocket.getError( ) && seBind != osl_Socket_E_None ); in clearError_001()
1355 ::osl::Socket sSocket(sHandle); in getError_001()
1360 osl_Socket_E_None == sSocket.getError( ) ); in getError_001()
1365 ::osl::Socket sSocket(sHandle); in getError_002()
1368 sSocket.setOption( osl_Socket_OptionReuseAddr, 1 ); //sal_True); in getError_002()
1369 sSocket.bind( saBindSocketAddr );//build an error "osl_Socket_E_AddrNotAvail" in getError_002()
1373 osl_Socket_E_InvalidError == sSocket.getError( ) ); in getError_002()
1378 osl_Socket_E_AddrNotAvail == sSocket.getError( ) ); in getError_002()
1412 ::osl::Socket sSocket(sHandle); in getHandle_001()
1413 ::osl::Socket assignSocket = sSocket.getHandle(); in getHandle_001()
1421 ::osl::Socket sSocket( sHandle ); in getHandle_002()
1422 ::osl::Socket assignSocket ( sSocket.getHandle( ) ); in getHandle_002()