joswa / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

socket fd are placed in a Queue #326

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am not able to retrieve the socket fd, which is required by my application 
once i start mongoose server... may i get the help???

Original issue reported on code.google.com by divyashr...@gmail.com on 14 Mar 2012 at 9:09

GoogleCodeExporter commented 9 years ago
Could you elaborate more on this please?
Why do you need to get a socket?

Original comment by valenok on 14 Mar 2012 at 9:21

GoogleCodeExporter commented 9 years ago
In my application i have msg queues and i ll check for socket fd using 
FD_ISSET..... once server starts listening, mg_context structure is filled 
right??... there we have a struct socket *listening_ports as a member in this 
structure one of the member is SOCK sock... i want to retrieve this value.... i 
have not written any callback.... now i have just called ctx = mg_start(NULL, 
NULL, options)

Original comment by divyashr...@gmail.com on 14 Mar 2012 at 9:31

GoogleCodeExporter commented 9 years ago
Mongoose manages it's own socket, why do you need them in your app?

Original comment by valenok on 14 Mar 2012 at 9:34

GoogleCodeExporter commented 9 years ago
more clear...
I have 2 conditions to do work say "A", 1 is I will get a message from another 
process through message queues(IPC mechanism) and second from browser i can 
read the request.... so i will be checking which fd is to select so how to 
retrieve fd....    

Original comment by divyashr...@gmail.com on 14 Mar 2012 at 10:21

GoogleCodeExporter commented 9 years ago
I don't think you need to get Mongoose sockets.

Original comment by valenok on 14 Mar 2012 at 11:50