Raised This Month: $ Target: $400
 0% 

[SOLVED] socket_listen && socket_open error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 06-13-2012 , 12:23   Re: socket_listen && socket_open error
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
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.

Last edited by OvidiuS; 06-13-2012 at 12:28.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode