Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to forbid the client illegal ip?

888815Aug 3 2012 — edited Aug 3 2012
Hello 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2012
Added on Aug 3 2012
2 comments
180 views