Jump to content
Sign in to follow this  

If someone chat client connects then?

Recommended Posts


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...



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
If yes then $RogueSocket = DLLCall(@WindowsDir & "\au3xtra.dll","int","TCPAccept", "int", $MainSocket)


Just a quick example

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.