FileDocCategorySizeDatePackage
SessionRequestPacket.javaAPI DocJCIFS 1.3.17 API2205Tue Oct 18 15:26:24 BST 2011jcifs.netbios

SessionRequestPacket

public 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
intreadTrailerWireFormat(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;
    
intwriteTrailerWireFormat(byte[] dst, int dstIndex)

        int start = dstIndex;
        dstIndex += calledName.writeWireFormat( dst, dstIndex );
        dstIndex += callingName.writeWireFormat( dst, dstIndex );
        return dstIndex - start;