OCaml Forge
Feature Requests
Search the entire project
This project's trackers
This project's releases
This project's news
Project
People
Advanced search
Log In
New Account
Home
My Page
Projects
Code Snippets
OCaml HTTP
Summary
Activity
Tracker
Lists
News
SCM
Files
Detail: [#971] Consider exposing http_parser publically
Feature Requests: Browse
|
Download .csv
|
Monitor
[#971] Consider exposing http_parser publically
Date:
2011-05-09 02:02
Priority:
3
State:
Open
Submitted by:
Andrew Harris (
andrewunit
)
Assigned to:
Nobody (None)
Summary:
Consider exposing http_parser publically
Detailed description
Hello, attached is an example of what I'm trying to do. I need to define a server that uses a free port on the machine, so I want to specify a 0 as the port in the sockaddr. I do this at line 32. If I do that myself, I can then know what the port is by querying the sockaddr. I need to know what port ends up being used. Unfortunately I cannot figure out how to get this behavior any other way with the http library as it stands. If I pass a 0 in as the port of the spec, I cannot figure out how to query back the port number that ends up being used.
Followup
Message
Date: 2011-05-09 02:04
Sender:
Andrew Harris
In order to use this custom approach, I also had to define my own daemon_callback function, and in order to parse the incoming request, I believe I need to call Http_parser to parse the request, but Http_parser is not publically exposed.
Attached Files:
Attachments:
RosSlaveAPI.ml
Changes:
Field
Old Value
Date
By
File Added
126: RosSlaveAPI.ml
2011-05-09 02:02
andrewunit