How to forbid the client illegal ip?
888815Aug 3 2012 — edited Aug 3 2012Hello everyone.
I want to check the client ip whether is legal when the client connects to the server.
For example:
The server only allows the client whose ip is "192.168.35.204" to access itself.When a client connects to it ,first, the server should be check whether the ip is "192.168.35.204", if not,shutdown the connection.
Now I only know one way.In the service,I call the " tpcall(".TMIB", (char*)ibuf, 0, (char**)&ibuf, &len, 0)" to get the client's ip, and then check it .
But When the tuxedo call the service, the connection has been established, and the data has recieved.What I want is checking the client's IP before data recieving.
Thanks.