Quote:
Originally Posted by PartialCloning
Removing "socket_close_t(g_ClientSThread, "CBClientCloseSocket" );" works, but it seems it's the way http works and you have to wait until all the data is pushed before closing the socket. Is there a way to check when the data is pushed?
|
The Forward is called
after sending data through the socket.
Quote:
Originally Posted by PartialCloning
It's safe to guess http support wasn't intended in this module. Do you recommend any other module/method to display server information to web browsers using the server's own ip address?
|
This is a generic Threaded Sockets module, meaning it supports all higher level protocols including HTTP, i.e, if the protocol is implemented properly. What you are doing is Correct, guess you are missing somethings. I didn't test your plugin till now, will get back after a quick test.
EDIT: The plugin is working properly as tested with the PHP Script (TCP Connections tester in first post). You are not implementing the HTTP protocol in the plugin properly, also ListenIP is your local ip and Listen Port must be 80 for HTTP. Simply sending HTTP OK will not work i guess, first you have to accept connection, wait for the HTTP Request, Then based upon the request you have to send the response.
BlackRose is also working on a similar HTTP Library, i guess.
As far as Sockets and Module, is concerned they are working as they should, discussion about HTTP is out of scope of this thread, maybe you can open a thread in Scripting Help Section.