Sign in to follow this  
Followers 0
Wb-FreeKill

If someone chat client connects then?

3 posts in this topic

I wonder if you could somehow accept if someone connects to Larry's dll chat.. like:

If someone try to connect to server then, msgbox if you wish to accept, else reject?

As it's now, the server accepts when someone connects right away

Share this post


Link to post
Share on other sites



"accept" is just a wrapper of the Winsock accept() function. They didn't need to name it accept... they could have named it cajeebers()... what you need to do is code a function that takes info from the client that is "accepted" and determine by your own means if that client is "ACCEPTABLE"... it is not a shortcoming of the DLL, but a lack of knowledge of TCP programming that you may be suffering from...

Lar.

<{POST_SNAPBACK}>

hmm, don't really understand what to do :) could really need this. But without the accept in the server, would it then connect?..

Though about something like

If client try to connect then
msgbox(0,"test","Accept?")
If yes then $RogueSocket = DLLCall(@WindowsDir & "\au3xtra.dll","int","TCPAccept", "int", $MainSocket)

else
EndIf

Just a quick example

Share this post


Link to post
Share on other sites

ahh, possible? :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0