View Single Post
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 05-19-2017 , 01:59   Re: Module: Threaded Sockets
Reply With Quote #63

Quote:
Originally Posted by PartialCloning View Post
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 View Post
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.
Attached Thumbnails
Click image for larger version

Name:	am.PNG
Views:	209
Size:	17.2 KB
ID:	162856  
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here

Last edited by Shooting King; 05-19-2017 at 03:48.
Shooting King is offline