include/PacketParser.h
changeset 3 724e07a9f155
parent 0 826dd5531eb0
child 4 fdf04a93faeb
--- a/include/PacketParser.h
+++ b/include/PacketParser.h
@@ -17,30 +17,26 @@
 #include <netinet/tcp.h>
 #include <netinet/udp.h>
 #include <netinet/ip_icmp.h>
-}
+} class PacketParser:public PacketReader {
+  public:
+    PacketParser (int tm = 500);
+      PacketParser (std::string);
+     ~PacketParser ();
+      std::string read ();
+      std::string getPacket ();
+    void setPort (unsigned short);
+    void setProtocol (int);
+      std::string getProtocol (int);
 
-class PacketParser : public PacketReader
-{
- public:
-	PacketParser ( int tm=500 );
-	PacketParser ( std::string );
-	~PacketParser ();
-	std::string read();
-	std::string getPacket();
-	void setPort(unsigned short);
-	void setProtocol(int);
-	std::string getProtocol(int);
+  private:
+      std::string str;
+    int protocol;
+    unsigned short port;
 
- private:
-	std::string str;
-	int protocol;
-	unsigned short port;
-
-	std::string shost;
-	std::string dhost;
-	unsigned short sport, dport;
-	struct protoent *proto;
+      std::string shost;
+      std::string dhost;
+    unsigned short sport, dport;
+    struct protoent *proto;
 };
 
 #endif
-