/titanic_44/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SDAAdvert.java | 125 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local 131 putInt32(hdr, timestamp, baos); in initialize() 132 byte[] timestampBytes = baos.toByteArray(); in initialize() 136 byte[] urlBytes = hdr.putString(surl, baos); in initialize() 141 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize() 149 baos, in initialize() 168 byte[] spiBytes = hdr.putString(spisString, baos); in initialize() 205 baos.write((byte)(auth.size() & 0xFF)); // auth block count in initialize() 207 AuthBlock.externalizeAll(hdr, auth, baos); in initialize() 211 baos.write((byte)0); in initialize() [all …]
|
H A D | SrvLocHeader.java | 235 externalize(ByteArrayOutputStream baos, in externalize() argument 344 void putInt(int z, ByteArrayOutputStream baos) { in putInt() argument 346 putInteger(z, baos); in putInt() 354 static void putInteger(int z, ByteArrayOutputStream baos) { in putInteger() argument 355 baos.write((byte) ((0xFF00 & z)>>8)); in putInteger() 356 baos.write((byte) (0xFF & z)); in putInteger() 381 protected void putInt24(int z, ByteArrayOutputStream baos) { in putInt24() argument 382 baos.write((byte) ((0xFF0000 & z) >> 16)); in putInt24() 383 baos.write((byte) ((0xFF00 & z)>>8)); in putInt24() 384 baos.write((byte) (0xFF & z)); in putInt24() [all …]
|
H A D | SLPHeaderV2.java | 114 abstract void externalize(SLPHeaderV2 hdr, ByteArrayOutputStream baos) in externalize() argument 332 externalize(ByteArrayOutputStream baos, boolean mcast, boolean isTCP) in externalize() argument 434 baos.write((byte) (0xFF & version)); in externalize() 435 baos.write((byte) (0xFF & functionCode)); in externalize() 439 putInt24(length, baos); in externalize() 465 baos.write((byte) (0xFF & flags)); in externalize() 466 baos.write((byte)0); in externalize() 468 putInt24(optOff, baos); // write option offset, if any. in externalize() 470 putInt(xid, baos); // write xid. in externalize() 472 putInt(ltagLen, baos); // write lang size. in externalize() [all …]
|
H A D | CSrvTypeMsg.java | 143 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in CSrvTypeMsg() local 147 parseNamingAuthorityOut(hdr, namingAuthority, baos); in CSrvTypeMsg() 155 hdr.parseCommaSeparatedListOut(scopes, baos); in CSrvTypeMsg() 157 hdr.payload = baos.toByteArray(); in CSrvTypeMsg() 166 ByteArrayOutputStream baos) { in parseNamingAuthorityOut() argument 171 hdr.putInt(0, baos); in parseNamingAuthorityOut() 174 hdr.putInt(0xFFFF, baos); in parseNamingAuthorityOut() 177 hdr.putString(name, baos); in parseNamingAuthorityOut()
|
H A D | SLPHeaderV1.java | 243 externalize(ByteArrayOutputStream baos, boolean mcast, boolean isTCP) in externalize() argument 288 baos.write((byte) (0xFF & version)); in externalize() 290 baos.write((byte) (0xFF & functionCode)); in externalize() 295 putInt(length, baos); // what about overflow??? in externalize() 317 baos.write((byte) (0xFF & flags)); in externalize() 319 baos.write((byte) (0xFF & 0)); // dialect... in externalize() 324 baos.write((byte) (0xFF & language.charAt(0))); in externalize() 325 baos.write((byte) (0xFF & language.charAt(1))); in externalize() 340 putInt(intCharCode, baos); in externalize() 341 putInt(xid, baos); in externalize() [all …]
|
H A D | SSrvMsg.java | 158 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local 166 hdr.putInt(n, baos); in makeReply() 200 baos, in makeReply() 210 byte[] bytes = baos.toByteArray(); in makeReply() 211 baos.reset(); in makeReply() 212 SrvLocHeader.putInteger(nurls, baos); in makeReply() 213 baos.write(bytes, 2, bytes.length - 2); in makeReply() 222 hdr.payload = baos.toByteArray(); in makeReply()
|
H A D | SSAAdvert.java | 104 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local 110 byte[] urlBytes = hdr.putString(surl, baos); in initialize() 116 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize() 124 baos, in initialize() 159 baos.write(nBlocks); in initialize() 165 AuthBlock.externalizeAll(hdr, auth, baos); in initialize() 171 hdr.payload = baos.toByteArray(); in initialize()
|
H A D | CSrvReg.java | 123 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local 130 baos, in initialize() 138 hdr.putString(serviceType.toString(), baos); in initialize() local 146 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize() 154 baos, in initialize() 157 hdr.payload = baos.toByteArray(); in initialize()
|
H A D | CAttrMsg.java | 133 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in constructPayload() local 137 hdr.putString(typeOrURL, baos); in constructPayload() 145 hdr.parseCommaSeparatedListOut(scopes, baos); in constructPayload() 153 hdr.parseCommaSeparatedListOut(tags, baos); in constructPayload() 165 hdr.putString(spi, baos); in constructPayload() 169 hdr.payload = baos.toByteArray(); in constructPayload()
|
H A D | CSrvDereg.java | 99 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local 107 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize() 114 baos, in initialize() 119 hdr.parseCommaSeparatedListOut(tags, baos); in initialize() 121 hdr.payload = baos.toByteArray(); in initialize()
|
H A D | CSrvMsg.java | 142 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local 160 hdr.putString(serviceType.toString(), baos); in initialize() local 164 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize() 168 hdr.putString(query, baos); in initialize() 172 hdr.putString(spi, baos); in initialize() 174 hdr.payload = baos.toByteArray(); in initialize()
|
H A D | SLPV1SDAAdvert.java | 98 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in initialize() local 102 hdr.parseServiceURLOut(url, false, baos); in initialize() 106 hdr.parseCommaSeparatedListOut(scopes, baos); in initialize() 108 hdr.payload = baos.toByteArray(); in initialize()
|
H A D | AuthBlock.java | 201 ByteArrayOutputStream baos) in externalizeAll() argument 210 ab.externalize(hdr, baos); in externalizeAll() 691 void externalize(SrvLocHeader hdr, ByteArrayOutputStream baos) 695 Assert.nonNullParameter(baos, "baos"); 698 hdr.putInt(bsd, baos); 701 hdr.putInt(abLength, baos); 704 putInt32(timeStamp, baos); 708 hdr.putString(spi, baos); 711 baos.write(abBytes, 0, abBytes.length); 855 static private void putInt32(long i, ByteArrayOutputStream baos) { [all …]
|
H A D | SLPV1SSrvTypeMsg.java | 120 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local 138 hdr.putStringVector(typeNames, baos); in makeReply() 140 hdr.payload = baos.toByteArray(); in makeReply()
|
H A D | SSrvTypeMsg.java | 153 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local 155 hdr.parseCommaSeparatedListOut(typeNames, baos); in makeReply() 157 hdr.payload = baos.toByteArray(); in makeReply()
|
H A D | SAttrMsg.java | 159 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local 162 auth, baos, true); in makeReply() 164 hdr.payload = baos.toByteArray(); in makeReply()
|
H A D | DAAdvertiser.java | 140 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in DAAdvertiser() local 142 hdr.externalize(baos, true, false); in DAAdvertiser() 143 outbuf = baos.toByteArray(); in DAAdvertiser()
|
H A D | RequestHandler.java | 281 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in run() local 285 handleRequest(dis, baos, false); in run() 287 byte[] outbuf = baos.toByteArray(); in run() 362 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in handleStream() local 364 boolean parseError = handleRequest(dis, baos, true); in handleStream() 366 dos.write(baos.toByteArray(), 0, baos.size()); in handleStream() 504 ByteArrayOutputStream baos, in handleRequest() argument 598 hdr.externalize(baos, false, isTCP); in handleRequest() 613 baos.reset(); in handleRequest() 623 hdr.externalize(baos, false, isTCP); in handleRequest()
|
H A D | SLPV1Manager.java | 161 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getOutbuf() local 163 hdr.externalize(baos, true, false); in getOutbuf() 164 byte[] outbuf = baos.toByteArray(); in getOutbuf()
|
H A D | SLPV1SAttrMsg.java | 224 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local 226 hdr.parseAttributeVectorOut(attrs, baos); // attributes in makeReply() 228 hdr.payload = baos.toByteArray(); in makeReply()
|
H A D | IANACharCode.java | 162 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in escapeChar() local 165 OutputStreamWriter osw = new OutputStreamWriter(baos, encoding); in escapeChar() 182 byte b[] = baos.toByteArray(); in escapeChar()
|
H A D | SLPV1SSrvMsg.java | 253 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in makeReply() local 280 hdr.putInt(n, baos); in makeReply() 289 hdr.parseServiceURLOut(surl, true, baos); in makeReply() 296 hdr.payload = baos.toByteArray(); in makeReply()
|
H A D | Transact.java | 692 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in getBytes() local 695 hdr.externalize(baos, isMulti, isTCP); in getBytes() 697 byte[] outbuf = baos.toByteArray(); in getBytes() 1165 ByteArrayOutputStream baos = null; in transactConvergeMsg() local
|
H A D | ServiceTable.java | 316 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in registerStore() local 318 creg.getHeader().externalize(baos, false, true); in registerStore() 321 new ByteArrayInputStream(baos.toByteArray()); in registerStore()
|