Jump to content

If someone chat client connects then?


Recommended Posts

"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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...