port - TcpListener perform code after accepting a SYN packet in C# -
i'm creating "port honey pot" in c#. listens clients tcp server: tcplistener.accepttcpclient(); the code keeps on running after client connects server. however, want server perform code after accepting syn packet. is possible? there other tcp server implementation allows it? to knowledge c# tcp sockets not give access packet descriptors such syn. cannot open port in promiscuous mode. you should open udp socket, instead or take @ libraries lidgren. but then, again, won't able switch udp tcp, have 1 or other. maybe if explain why , need there other ways.