Quote:
Originally Posted by Bugsy
I wasn't implying that you were using multiple listening sockets on the same port, I was just making a statement that it cannot be done.
What do you mean there is no need for a socket_change() check? socket_change() calls the select() function which determines if any activity (data-arrival, socket-writeability, connection request, remote party disconnect) has occurred on a given socket so you can then react to it accordingly. Please explain why this isn't needed, or shouldn't be used.
|
I misunderstood you.
About socket_change, i said that i noticed that it isn't used on TCP socket listen.
I saw that from tutorials on this forum. You are probably right, but i haven't seen that anyone is using it in TCP socket. I'm relativly new to sockets, used them once/twice before and thats it.
Examples which i found:
https://forums.alliedmods.net/showpo...50&postcount=1
http://forums.alliedmods.net/showthread.php?t=150519 - api
One more question

I send strings which are not related to other strings which are also sent.
Can i do this with UDP socket?
Important thing is:
- Data must be received
- No duplicated data
- Received data must be in same form as data which was sent.