Module: Sockets_hz ( listenning + nonblocking ) ... working :)
3 Attachment(s)
It's a modification of the socket module.
I've added 3 functions. PHP Code:
PHP Code:
PHP Code:
With TCP you've to create a listenning socket and accept connections. To avoid socket_accept block. Set the listenning socket to nonblocking mode with socket_unblock. Todo: add: incoming packet address in socket_accept add: function to see the address when receive a package of a listenning socket. |
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
Can you add an example of this in action?
|
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
...
|
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
|
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
Quote:
|
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
I'm very sorry but people keep asking thing like this ... and I'm keep replying I've no enough time ...
You should ask to ramono his code with the new socket_unblock function ... |
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
I don't get it, so all u have to do is call
socket_unblock(_socket) then socket_accept(_socket) and it doesnt block? or..? Anyway, can somone compile this for win32 please? |
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
There is a win32 in the other thread, however, I'm not 100% positive that it is the newest version.
|
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
Quote:
|
Re: Module: Sockets_hz ( listenning + nonblocking ) ... working :)
Quote:
|
All times are GMT -4. The time now is 15:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.