home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / t / tpapi.zip / NWCONN.PA1 < prev    next >
Text File  |  1992-03-02  |  4KB  |  84 lines

  1. {!R! FONT 15; FTMD 15; EXIT;}
  2.  
  3.  
  4. {***************************************************************************}
  5. {** Program : NWCONN                                                      **}
  6. {***************************************************************************}
  7. {** Version : 1.3             ** Started : 11/11/91  ** Ended :   /  /    **}
  8. {***************************************************************************}
  9. {******************************** Description ******************************}
  10. {***************************************************************************}
  11. {** OOP library for Netware API                                           **}
  12. {**                                                                       **}
  13. {** This unit forms the second level object : CONNECT                     **}
  14. {** This object is a descandent of          : NETWARE                     **}
  15. {**                                                                       **}
  16. {**                                                                       **}
  17. {**                                                                       **}
  18. {**                                                                       **}
  19. {***************************************************************************}
  20. {******************************** Information ******************************}
  21. {***************************************************************************}
  22. {** Provides Netware Connection Services                                  **}
  23. {**                                                                       **}
  24. {**                                                                       **}
  25. {**                                                                       **}
  26. {** This code is (c) 1991,1992 Tony Covelli                               **}
  27. {** Portions (c) Novell Inc,                                              **}
  28. {**                                                                       **}
  29. {**                                                                       **}
  30. {***************************************************************************}
  31.  
  32. {$I NETWARE.INC}
  33.  
  34. UNIT NWCONN;
  35.  
  36. INTERFACE
  37.  
  38. USES
  39.  
  40.   netware, nwvar;
  41.  
  42. TYPE
  43.  
  44.   pConnectOBJ = ^ConnectOBJ;
  45.   ConnectOBJ  = object (NetwareOBJ)
  46.  
  47.     CONSTRUCTOR Init;
  48.  
  49.     FUNCTION    AttachToFileServer            (ServerName : ObjectNameType; VAR ConnectionID : WORD) : WORD;
  50.  
  51.     FUNCTION    AttachToFileServerWithAddress (ServerName : ObjectNameType; VAR ConnectionID : WORD;
  52.                                                NetAddress : ServerAddressType) : WORD;
  53.  
  54.     PROCEDURE   DetachFromFileServer          (ConnectionID : WORD);
  55.  
  56.     FUNCTION    EnterLoginArea                (LoginSubdirectoryName : PathNameType; NumberOfLocalDrives : WORD) : WORD;
  57.  
  58.     FUNCTION    GetConnectionInformation      (ConnectionNumber : WORD; VAR ObjectName : ObjectNameType;
  59.                                                VAR ObjectType : OT_BinderyType; VAR ObjectID : OT_BinderyID;
  60.                                                VAR LoginTime : Byte7ArrayType) : WORD;
  61.  
  62.     FUNCTION    GetConnectionNumber : WORD;
  63.  
  64.     FUNCTION    GetInternetAddress            (ConnectionNumber : WORD; VAR NetworkNumber : Byte4ArrayType;
  65.                                                VAR PhysicalNodeAddress : Byte6ArrayType; VAR SocketNumber : WORD) : WORD;
  66.  
  67.     FUNCTION    GetObjectConnectionNumbers    (ObjectName : ObjectNameType; ObjectType : OT_BinderyType;
  68.                                                VAR NumberOfConnections : WORD;
  69.                                                VAR ConnectionList : ConnectionListType; MaxConnections : WORD) : WORD;
  70.  
  71.     PROCEDURE   GetStationAddress             (VAR PhysicalNodeAddress : Byte6ArrayType);
  72.  
  73.     FUNCTION    LoginToFileServer             (ObjectName : ObjectNameType; ObjectType : OT_BinderyType;
  74.                                                ObjectPassword : PasswordType; ConnectionID : WORD) : WORD;
  75.  
  76.     PROCEDURE   Logout;
  77.  
  78.     PROCEDURE   LogoutFromFileServer          (ConnectionID : WORD);
  79.  
  80.     DESTRUCTOR  Done; VIRTUAL;
  81.  
  82.   END;
  83.  
  84.