1 29 38 39 package org.planetamessenger.protocols.comvc; 40 41 42 class JSystemDetails { 43 44 private int nMyTCPPort; 45 private int nMyUDPPort; 46 private int nLoginHostPort; 47 private int nBOSPort; 48 private int nServicesPort; 49 private java.lang.String strLoginHost; 50 private java.lang.String strBOSAddress; 51 private java.lang.String strMyIPAddress; 52 private long nTicket; 53 private byte nCrypt; 54 55 56 57 JSystemDetails() { 58 62 63 nMyTCPPort = 0; 64 nMyUDPPort = 0; 65 nBOSPort = 0; 66 nCrypt = 0; 67 strBOSAddress = ""; 68 strMyIPAddress = ""; 69 nServicesPort = JComVcConstants.COMVC_SERVICES_PORT; 70 nLoginHostPort = JComVcConstants.COMVC_LOGIN_PORT; 71 strLoginHost = JComVcConstants.COMVC_LOGIN_SERVER; 72 } 73 74 void setIPAddress( java.lang.String strMyAddress ) { 75 80 81 strMyIPAddress = strMyAddress; 82 } 83 84 java.lang.String getIPAddress() { 85 88 89 return strMyIPAddress; 90 } 91 92 void setTCPPort( int nTCPPort ) { 93 99 100 this.nMyTCPPort = nTCPPort; 101 } 102 103 int getTCPPort() { 104 108 109 return nMyTCPPort; 110 } 111 112 void setUDPPort( int nUDPPort ) { 113 119 120 this.nMyUDPPort = nUDPPort; 121 } 122 123 int getUDPPort() { 124 128 129 return nMyUDPPort; 130 } 131 132 int getLoginHostPort() { 133 136 137 return nLoginHostPort; 138 } 139 140 java.lang.String getLoginHost() { 141 144 145 return strLoginHost; 146 } 147 148 void setBOSAddress( java.lang.String strBOSAddress ) { 149 156 157 this.strBOSAddress = strBOSAddress; 158 } 159 160 java.lang.String getBOSAddress() { 161 165 166 return strBOSAddress; 167 } 168 169 void setBOSPort( int nBOSPort ) { 170 176 177 this.nBOSPort = nBOSPort; 178 } 179 180 int getBOSPort() { 181 185 186 return nBOSPort; 187 } 188 189 void setServicesPort( int nServicesPort ) { 190 196 197 this.nServicesPort = nServicesPort; 198 } 199 200 int getServicesPort() { 201 205 206 return nServicesPort; 207 } 208 209 void setTicket( long nTicket ) { 210 217 218 this.nTicket = nTicket; 219 } 220 221 long getTicket() { 222 226 227 return nTicket; 228 } 229 230 void setCrypt( byte nCrypt ) { 231 238 239 this.nCrypt = nCrypt; 240 } 241 242 byte getCrypt() { 243 247 248 return nCrypt; 249 } 250 } 251 252 | Popular Tags |