So I know for a listener to read()
a packet the client must write()
to that open port's socket.
I've set up a basic server/client example with each implementing the above, and server successfully reading from clients connection.
My problem is I want to read a libtins packet -
IP pktSend = IP("10.0.2.15")/TCP(8080,7070)/RawPDU("Packet Message");
All I've been able to do is sniff the packet server side. But I want to be able to read()
its payload. My initial server example taken from - http://ift.tt/1el2JYl - won't read the packet.
I looked into the PacketSender class libtins uses to send packets and it doesn't seem to implement write()
at all.
I'm not sure what I'm missing.
Aucun commentaire:
Enregistrer un commentaire