SessionRequestPacketpublic class SessionRequestPacket extends SessionServicePacket
Fields Summary |
---|
private Name | calledName | private Name | callingName |
Constructors Summary |
---|
SessionRequestPacket()
calledName = new Name();
callingName = new Name();
| public SessionRequestPacket(Name calledName, Name callingName)
type = SESSION_REQUEST;
this.calledName = calledName;
this.callingName = callingName;
|
Methods Summary |
---|
int | readTrailerWireFormat(java.io.InputStream in, byte[] buffer, int bufferIndex)
int start = bufferIndex;
if( in.read( buffer, bufferIndex, length ) != length ) {
throw new IOException( "invalid session request wire format" );
}
bufferIndex += calledName.readWireFormat( buffer, bufferIndex );
bufferIndex += callingName.readWireFormat( buffer, bufferIndex );
return bufferIndex - start;
| int | writeTrailerWireFormat(byte[] dst, int dstIndex)
int start = dstIndex;
dstIndex += calledName.writeWireFormat( dst, dstIndex );
dstIndex += callingName.writeWireFormat( dst, dstIndex );
return dstIndex - start;
|
|