Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : winsock.accept question
| Subject: | winsock.accept question |
| Posted by: | "Jon Lennart Aasenden" (post_nospam_nojunk@jurasoft.no) |
| Date: | Fri, 25 Feb 2005 15:37:10 |
Hi.
Im coding on winsock level and have a question about accepting connections,
or should i say - avoiding connections.
I am investigating if it is possible to build in a function in my server, so
that if it is has reached it's defined max limit of connections - it can
re-route the connection request to another machine.
I would like to have two servers that handles the connections, and a common
database server that both use, that way, clients can connect and get access
to their accounts even if one server is full.
The easiest would ofcourse be to respond with a relay package, giving the
client the IP and port of another machine to connect to - but i am curious
if this is possible to do automatically from a listening socket. Also, in
sending such a packet - i would have to accept the damn connection in the
first place right?
I dont know much about binding except for localhost, is it perhaps possible
to bind the new socket to a remote host?
And no. Im not using indy or ICS here - i have coded my own stuff from
scratch. So no indy or ics tips - i use them both at work, i think they are
wonderfull packages - but i love to write my own stuff. A bit geeky but good
fun.
Hope anyone can help me out
Kind regards
Jon Lennart Aasenden,
Norway