~ubuntu-branches/ubuntu/trusty/jsch/trusty-proposed

« back to all changes in this revision

Viewing changes to src/com/jcraft/jsch/RequestWindowChange.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2008-03-21 11:41:01 UTC
  • mfrom: (3.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080321114101-2g9w5l8ynwf6pbsq
Tags: 0.1.37-3
Add OSGi manifest patch. Thanks to Roberto Jimenoca. Closes: #471209.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
2
2
/*
3
 
Copyright (c) 2002,2003,2004,2005,2006 ymnk, JCraft,Inc. All rights reserved.
 
3
Copyright (c) 2002-2008 ymnk, JCraft,Inc. All rights reserved.
4
4
 
5
5
Redistribution and use in source and binary forms, with or without
6
6
modification, are permitted provided that the following conditions are met:
29
29
 
30
30
package com.jcraft.jsch;
31
31
 
32
 
class RequestWindowChange implements Request{
 
32
class RequestWindowChange extends Request{
33
33
  int width_columns=80;
34
34
  int height_rows=24;
35
35
  int width_pixels=640;
41
41
    this.height_pixels=hp;
42
42
  }
43
43
  public void request(Session session, Channel channel) throws Exception{
 
44
    super.request(session, channel);
 
45
 
44
46
    Buffer buf=new Buffer();
45
47
    Packet packet=new Packet(buf);
46
48
 
61
63
    buf.putInt(height_rows);
62
64
    buf.putInt(width_pixels);
63
65
    buf.putInt(height_pixels);
64
 
    session.write(packet);
 
66
    write(packet);
65
67
  }
66
 
  public boolean waitForReply(){ return false; }
67
68
}