> There is server application listening on some port (xxxx). > Client application connects to server on perticular port(xxxx). > > If my application know port (xxxx) can i get data whatever is send by server > before clinet. > My application validates data if valid then only pass to clinet else > close the connection. > > Is it possible using raw socket or i need to write kernel module or driver? > Is there any other way?
yes you can do it by using raw sockets. but raw sockets need root prviledge (be aware of it) .... actually i hv done this before. or else hv ur application assigned YY port. Before sending it to the client, send the data to ur application, validate it, if it says ok, forward it to the client (messssyyyy). -- ________________________________________________________________ "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -- Einstein. - Vikram Karandikar -- ______________________________________________________________________ Pune GNU/Linux Users Group Mailing List: ([email protected]) List Information: http://plug.org.in/mailing-list/listinfo/plug-mail Send 'help' to [EMAIL PROTECTED] for mailing instructions.
