AttachByAddress

Attaches (but does not log in) an NLM application to the server whose address is specified

Local Servers:blocking
Remote Servers:blocking
Classification:4.x, 5.x, 6.x
Service:Server-Based Connection

Syntax

  #include <nwconn.h>  
   
  int AttachByAddress (  
     int    transType,  
     LONG   transLen,  
     BYTE   *transBuf,  
     WORD   *fileServerID); 
  

Parameters

transType
(IN) Specifies the transport type, such as the IPX™ protocol.
transLen
(IN) Specifies the length of the transport buffer in bytes.
transBuf
(IN) Points to the transport buffer.
fileServerID
(OUT) Receives the file server ID of the newly attached server.

Return Values

If successful, this function returns zero. Otherwise, NetWareErrno is set.

Remarks

AttachByAddress attaches the NLM to the address described by the transType, transLen, and transBuf parameters. In addition AttachByAddress also sets the current connection of the calling thread (and of all threads in the same thread group) to be the new connection obtained by this function.

The file server ID of the attached server is returned in the fileServerID parameter.

The transport buffer contains different data depending on the transport type.

See Also

AttachToFileServer