socket programming

dear pals!

i have a problem to restrict my socket when an connection establish with my application's socket.i want my application won't response to any http request on my port.how do i restrict from such a http connection ? And how to identify a incomming connection's type?(ie, http, ftp,etc).please send me any comments about it!

regards
kamaraj.m
[387 byte] By [kamarajmani] at [2007-11-18 19:15:54]
# 1 Re: socket programming
Just my immediate thoughts.

One way is to create sniffer socket (raw) and check the header of the incomming packets to the
port. I don't know if there is an easier way (someone post if there is :) )
Mathew Joy at 2007-11-9 13:46:28 >