Function NbSCall() Foundation

Opens the NetBIOS session buffers.

Syntax
NbSCall( <cLocalName>           , ;
         [<nReceiveBufferSize>] , ;  // Default: <nPackageSize>
         [<nSendBufferSize>]    , ;  // Default: <nPackageSize>
         <cRemoteName>          , ;
         [<nPackageSize>]       , ;  // Default: 512
         [<nReceiveTimeout>]    , ;  // Default: 0
         [<nSendTimeout>]         ;  // Default: 0
       ) --> nCommunicationHandle
Return

Returns a communication handle as a numeric value or 0 in case of an error.

Description

<cLocalName>

A string of max. 15 characters. It serves as the local workstation's NetBIOS name for communication with other workstations in the network. If <cLocalName> does not exist in the local name table it is added automatically (see NbAddName()).

<nReceiveBufferSize>

If this parameter is omitted no receive buffer will be installed on the local workstation. In this case it is only possible to send data. Otherwise it is a numeric value which must fall between <nPackageSize> and 64 kb.

<nSendBufferSize>

If this parameter is omitted no send buffer will be installed on the local workstation. In this case it is only possible to receive data. Otherwise it is a numeric value which must fall between <nPackageSize> and 64 kb.

<cRemoteName>

A string specifying the NetBIOS name of the remote workstation.

<nPackageSize>

This parameter defines the size of data packages to send/receive. It defaults to 512 bytes which is the maximum size.

<nReceiveTimeout>

Integer which sets the receive timeout interval in 1/2 second units.

<nSendTimeout>

Integer which sets the send timeout interval in 1/2 second units.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.