W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

Listening on a particular port. This is a bug.

From: Worik Macky Turei Stanton <worik@noggon.co.nz>
Date: 18 Mar 2001 12:06:18 +1200
To: www-lib@w3.org
Message-ID: <87bsr0gcud.fsf@noggon.co.nz>
Friends

To lkisten on a port I had to...

//    host_local = HTHost_new("127.0.0.1", 8088);
    HTRequest * req = HTRequest_new();
    host_local = HTHost_newWParse(req, "http://127.0.0.1", 8088);
// This is a bug........................^^^^^^
// Why do I need to specify a protocol?  I am not going to use it!

    net_local = HTNet_new(host_local);
    host_remote = HTHost_new("", 0);
    net_remote = HTNet_new(host_remote);
    HTNet_setTransport (net_remote, HTTransport_find (0, "tcp"));

    if(HTHost_listen(host_local, net_remote, "127.0.0.1") == HT_ERROR){

Now I am listening on the correct port!

Now I have to figgure out how to get properly notified of ACCEPT then READ.

Whew!

Worik

-- 
                     Worik Macky Turei Stanton
                          worik@noggon.co.nz
                              Aotearoa
    This line would not have seven words if only it had eight words less.
Received on Saturday, 17 March 2001 19:03:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT