1 17 package org.alfresco.filesys.smb.server; 18 19 24 public class SMBSrvSessionState 25 { 26 27 29 public static final int NBHANGUP = 5; 30 31 33 public static final int NBSESSREQ = 0; 34 35 37 public static final int SMBCLOSED = 4; 38 39 41 public static final int SMBNEGOTIATE = 1; 42 43 45 public static final int SMBSESSION = 3; 46 47 49 public static final int SMBSESSSETUP = 2; 50 51 53 private static final String _stateName[] = { 54 "NBSESSREQ", 55 "SMBNEGOTIATE", 56 "SMBSESSSETUP", 57 "SMBSESSION", 58 "SMBCLOSED", 59 "NBHANGUP" }; 60 61 64 public static String getStateAsString(int state) 65 { 66 if (state < _stateName.length) 67 return _stateName[state]; 68 return "[UNKNOWN]"; 69 } 70 } | Popular Tags |