On Wed, 13 Jan 2010, Szak�ts Viktor wrote:
Hi,
> Well, I assumed so, and that's why I was asking about it,
> everything pointed towards server-side, yet I saw that the
> function to enable it was expecting a client side connection.
> As it turns out I just couldn't find out how to use it.
It does not expect client side connection but it expects
connection socket. In connected protocols like TCP on the
server side you have always two type of sockets.
1. listening socket which waits for connections on given
port number
2. connection socket which is created when listening socket
_accepts_ the connection
The data is exchanged using connection socket.
I tried to use precise names in function parameters to avoid
confusion so if sth is still not clear then please tell me
and I'll update it.
Below is a list of all PRG functions available in current NETIO
code. I'll commit it with small description soon.
best regards,
Przemek
Client side functions:
======================
NETIO_CONNECT( [<cServer>], [<cPort>], [<nTimeOut>], ;
[<cPasswd>], [<nCompressionLevel>], [<nStrategy>] )
-> <lConnected>
NETIO_DISCONNECT( [<cServer>], [<cPort>] ) -> <lOK>
NETIO_PROCEXISTS( <cProcName> ) -> <lExists>
NETIO_PROCEXEC( <cProcName> [, <params,...>] ) -> <lSent>
NETIO_PROCEXECW( <cProcName> [, <params,...>] ) -> <lExecuted>
NETIO_FUNCEXEC( <cFuncName> [, <params,...>] ) -> <xFuncRetVal>
Server side functions:
======================
NETIO_LISTEN( [<nPort>], [<cIfAddr>], [<cRootDir>], [<lRPC>] )
-> <pListenSocket> | NIL
NETIO_ACCEPT( <pListenSocket>, [<nTimeOut>],
[<cPass>], [<nCompressionLevel>], [<nStrategy>] )
-> <pConnectionSocket> | NIL
NETIO_COMPRESS( <pConnectionSocket>,
[<cPass>], [<nCompressionLevel>], [<nStrategy>] ) -> NIL
NETIO_SERVER( <pConnectionSocket> ) -> NIL
NETIO_RPC( <pListenSocket> | <pConnectionSocket> [, <lEnable>] ) -> <lPrev>
NETIO_RPCFILTER( <pConnectionSocket>,
<sFuncSym> | <hValue> | NIL ) -> NIL
NETIO_SERVERSTOP( <pListenSocket> | <pConnectionSocket> [, <lStop>] ) -> NIL
NETIO_MTSERVER( [<nPort>], [<cIfAddr>], [<cRootDir>],
[<lRPC> | <sFuncSym> | <hValue>],
[<cPasswd>], [<nCompressionLevel>], [<nStrategy>] )
-> <pListenSocket>
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour