2011-01-25 15:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbnetio/utils/netiosrv/netiosrv.hbp
    ! Corrected relative path to hbnetio.hbc

  * contrib/hbnetio/hbnetio.hbc
    ! Added missing incpath option.

  * contrib/hbnetio/hbnetio.ch
  * contrib/hbnetio/netiosrv.c
    ! Typo: NETIO_SRVINFO_PEERADDRES -> NETIO_SRVINFO_PEERADDRESS

  * contrib/hbnetio/netiosrv.c
    - Deleted: NETIO_OPENFILESCOUNT().
    ; TODO: Pls update netiosrq to use the new interface.
            Same for netiosrv. I'll do it in next commit.

  * contrib/hbnetio/hbnetio.ch
    ! Added notice that this .ch file is used also by .c code.
This commit is contained in:
Viktor Szakats
2011-01-25 14:28:48 +00:00
parent 1a44f58622
commit 9b70178aee
5 changed files with 26 additions and 13 deletions

View File

@@ -16,6 +16,25 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-01-25 15:26 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbnetio/utils/netiosrv/netiosrv.hbp
! Corrected relative path to hbnetio.hbc
* contrib/hbnetio/hbnetio.hbc
! Added missing incpath option.
* contrib/hbnetio/hbnetio.ch
* contrib/hbnetio/netiosrv.c
! Typo: NETIO_SRVINFO_PEERADDRES -> NETIO_SRVINFO_PEERADDRESS
* contrib/hbnetio/netiosrv.c
- Deleted: NETIO_OPENFILESCOUNT().
; TODO: Pls update netiosrq to use the new interface.
Same for netiosrv. I'll do it in next commit.
* contrib/hbnetio/hbnetio.ch
! Added notice that this .ch file is used also by .c code.
2011-01-25 14:19 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbapiitm.h
* harbour/src/vm/itemapi.c

View File

@@ -50,6 +50,8 @@
*
*/
/* NOTE: This file is also used by C code. */
#ifndef HBNETIO_CH_
#define HBNETIO_CH_
@@ -79,6 +81,6 @@
#define NETIO_SRVINFO_FILESCOUNT -1
#define NETIO_SRVINFO_BYTESSENT -2
#define NETIO_SRVINFO_BYTESRECEIVED -3
#define NETIO_SRVINFO_PEERADDRES -4
#define NETIO_SRVINFO_PEERADDRESS -4
#endif /* HBNETIO_CH_ */

View File

@@ -2,4 +2,6 @@
# $Id$
#
incpaths=.
libs=${hb_name}${__HB_DYN__}

View File

@@ -1404,7 +1404,7 @@ HB_FUNC( NETIO_SRVSTATUS )
case NETIO_SRVINFO_BYTESRECEIVED:
hb_stornint( conn->rd_count, 3 );
break;
case NETIO_SRVINFO_PEERADDRES:
case NETIO_SRVINFO_PEERADDRESS:
{
void * addr;
unsigned int len;
@@ -1429,13 +1429,3 @@ HB_FUNC( NETIO_SRVSOCKET )
if( conn )
hb_socketItemPut( hb_stackReturnItem(), conn->sd );
}
HB_FUNC( NETIO_SRVOPENFILESCOUNT )
{
PHB_CONSRV conn = s_consrvParam( 1 );
if( conn )
hb_retni( conn->filesCount );
else
hb_retni( 0 );
}

View File

@@ -2,7 +2,7 @@
# $Id$
#
../hbnetio.hbc
../../hbnetio.hbc
-mt
-w3 -es2 -l