I want to check the client ip whether is legal when the client connects to the server.
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.
In addition to Todd's security suggestion, if you enable/use authentication:
you may try customizing the AUTHSVR to get what you need. Take a look at adding your MIB
code to the AUTHSVC in $TUXDIR/lib/AUTHSVR.c to create your own AUTHSVR/AUTHSVC(i.e. renamed of course).