2010-06-10 19:12 UTC+0300 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt)

* harbour/examples/httpsrv/uhttpd.prg
  * harbour/examples/uhttpd2/umain.prg
    * optimized hb_socketRecv() calls
    * optimized (removed) hb_socketSelect() calls, current API
      has timeout parameter and make things simple

  * harbour/examples/commouse/commouse.prg
    ! fixed error reporting (missing hb_comGetError()) parameter

  * harbour/include/hbsocket.ch
    * adjusted comment text

  * harbour/contrib/hbtpathy/telepath.prg
    ! fixed missing nTimeout parameter in tp_send()

  * harbour/source/rtl/hbcomhb.c
    ! fixed typo in hb_comSend()
    ! fixed hb_storni() paramter order bugs
This commit is contained in:
Mindaugas Kavaliauskas
2010-06-10 16:12:39 +00:00
parent bf5511aa05
commit 508e2ec93f
7 changed files with 73 additions and 65 deletions

View File

@@ -108,7 +108,7 @@ HB_FUNC( HB_COMFLOWCONTROL )
{
int iValue = 0;
hb_retl( hb_comFlowControl( hb_parni( 1 ), &iValue, hb_parni( 3 ) ) == 0 );
hb_storni( 2, iValue );
hb_storni( iValue, 2 );
}
HB_FUNC( HB_COMFLOWSET )
@@ -163,21 +163,21 @@ HB_FUNC( HB_COMLSR )
{
int iValue = 0;
hb_retl( hb_comLSR( hb_parni( 1 ), &iValue ) == 0 );
hb_storni( 2, iValue );
hb_storni( iValue, 2 );
}
HB_FUNC( HB_COMMCR )
{
int iValue = 0;
hb_retl( hb_comMCR( hb_parni( 1 ), &iValue, hb_parni( 3 ), hb_parni( 4 ) ) == 0 );
hb_storni( 2, iValue );
hb_storni( iValue, 2 );
}
HB_FUNC( HB_COMMSR )
{
int iValue = 0;
hb_retl( hb_comMSR( hb_parni( 1 ), &iValue ) == 0 );
hb_storni( 2, iValue );
hb_storni( iValue, 2 );
}
HB_FUNC( HB_COMOPEN )
@@ -237,5 +237,5 @@ HB_FUNC( HB_COMSEND )
if( lParam >= 0 && lParam < lLen )
lLen = lParam;
}
hb_retnl( hb_comSend( hb_parni( 1 ), hb_parc( 2 ), lLen, hb_parnint( 5 ) ) );
hb_retnl( hb_comSend( hb_parni( 1 ), hb_parc( 2 ), lLen, hb_parnint( 4 ) ) );
}