Branch: Tag:

1997-03-17

1997-03-17 18:47:33 by Niels Möller <nisse@lysator.liu.se>

Changed write_callback handling

Rev: lib/modules/SSL.pmod/https.pike:1.5

40:    "<hr><it>/nisse</it></body></html>\n";    int index = 0;    -  void do_write() +  void write_callback()    {    if (index < strlen(message))    {
57:    void read_callback(mixed id, string data)    {   #ifdef SSL3_DEBUG -  werror("Recieved: '" + data + "'\n"); +  werror("Received: '" + data + "'\n");   #endif -  do_write(); +  sslfile->set_write_callback(write_callback);    }    -  void write_callback(mixed id) -  { -  do_write(); -  } -  +     void create(object f)    {    sslfile = f; -  sslfile->set_nonblocking(read_callback, write_callback, 0); +  sslfile->set_nonblocking(read_callback, 0, 0);    }   }   
161:   void my_accept_callback(object f)   {    werror("Accept!\n"); -  conn(f->accept()); +  conn(accept());   }      int main()
203: Inside #if defined(SSL3_DEBUG)
  {   #ifdef SSL3_DEBUG    werror("https->create\n"); - #ifdef SSL3_DEBUG + #endif    sslport::create();   }