Announcement

Collapse
No announcement yet.

Anyone have a TCP Web Server Example?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lance Edmonds
    replied
    also see http://www.powerbasic.com/support/pb...ad.php?t=23960



    ------------------
    lance
    powerbasic support
    mailto:[email protected][email protected]</a>

    Leave a comment:


  • Lance Edmonds
    replied
    There has been at least one adaption of the code posted to the BBS, but there is a PB/DLL version availaable from the DOWNLOADS section at http://www.powerbasic.com/files/pub/pbwin/inet/http.zip

    I hope this helps!

    PS: search for "http server"...

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Mike Doty
    replied
    Has anyone rewritten the server for use with PB/CC 2.0?
    It does not compile "unrecognized keywords" and is unformatted.
    mailto:[email protected][email protected]</A>

    ------------------

    Leave a comment:


  • Don Dickinson
    replied
    You can do it in PBDLL, you just have to create functions for reading and writing to stdout/stdin. Otherwise, there's no difference. I think some code for this has been posted in the past, do a search for GetStdHandle and you'll probably find something.
    Best Regards,
    Don

    ------------------
    dickinson.basicguru.com

    Leave a comment:


  • Maurice de Laat
    replied
    Cant this be done with PB/DLL?
    Is PB/CC the only we to program these kinds of programs?

    Leave a comment:


  • Lance Edmonds
    replied
    Take a look at EriK Olsen's PB/CC Server example code...

    http://www.powerbasic.com/support/fo...-7-000085.html



    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Kim Grittner
    Guest started a topic Anyone have a TCP Web Server Example?

    Anyone have a TCP Web Server Example?

    Is there an example of a TCP Web Server?
    What I want to do is a simplified web server.

    1. Define port to listen on as port x.
    2. Listen for connection on port x.
    3. Parse the url and parameters sent by the client browser.
    4. Return text as in "<html><body>Hello</body></html>"
    5. Properly close connection and wait for another request.

    I have looked at the excellent code by Don Dickinson for Remote Binary file
    access at this location: http://dickinson.basicguru.com/code.htm
    ...but it is really overkill for what I want to do. I am not sure what the
    bare-bones web server would include.
    Does anyone know of some "bare bones" code for a web server using the TCP
    commands?

    Thanks in advance.


    ------------------
Working...
X