getting sockaddr from accept

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

Hi All, Hi Fred.

Purebasic accepts every incoming connection to a server automatically.
The API Command accept() is able to receive informations about the connected client to a server. This can be very usefull to handle and server to clients. (eg Ban-IP (or ranges)) etc.

Is it lately possible to get these information from a socket? If not, Fred please could you add a small command which returns a pointer to a buffer with these information for the next release?

I tried to do an accept on a allready acceptes socket but this doesnt work.

Thanks a lot

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User