1 17 package org.alfresco.filesys.smb.dcerpc; 18 19 22 public class DCECommand 23 { 24 25 27 public final static byte REQUEST = 0x00; 28 public final static byte RESPONSE = 0x02; 29 public final static byte FAULT = 0x03; 30 public final static byte BIND = 0x0B; 31 public final static byte BINDACK = 0x0C; 32 public final static byte ALTCONT = 0x0E; 33 public final static byte AUTH3 = 0x0F; 34 public final static byte BINDCONT = 0x10; 35 36 42 public final static String getCommandString(int cmd) 43 { 44 45 47 String ret = ""; 48 switch (cmd) 49 { 50 case REQUEST: 51 ret = "Request"; 52 break; 53 case RESPONSE: 54 ret = "Repsonse"; 55 break; 56 case FAULT: 57 ret = "Fault"; 58 break; 59 case BIND: 60 ret = "Bind"; 61 break; 62 case BINDACK: 63 ret = "BindAck"; 64 break; 65 case ALTCONT: 66 ret = "AltCont"; 67 break; 68 case AUTH3: 69 ret = "Auth3"; 70 break; 71 case BINDCONT: 72 ret = "BindCont"; 73 break; 74 } 75 return ret; 76 } 77 } | Popular Tags |