include/PacketWriter.h
changeset 3 724e07a9f155
parent 0 826dd5531eb0
child 4 fdf04a93faeb
equal deleted inserted replaced
2:62ddf5dd4db0 3:724e07a9f155
    10 #include <sys/socket.h>
    10 #include <sys/socket.h>
    11 #include <netinet/in.h>
    11 #include <netinet/in.h>
    12 #include <arpa/inet.h>
    12 #include <arpa/inet.h>
    13 #include <netdb.h>
    13 #include <netdb.h>
    14 
    14 
    15 class PacketWriter : PacketReader {
    15 class PacketWriter:PacketReader {
    16 private:
    16   private:
    17 	struct sockaddr_in ca;
    17     struct sockaddr_in ca;
    18 
    18 
    19 public:
    19   public:
    20 	PacketWriter(char *, int);
    20       PacketWriter (char *, int);
    21 	~PacketWriter();
    21      ~PacketWriter ();
    22 
    22 
    23 	void write(char *s, int);
    23     void write (char *s, int);
    24 	bool ready();
    24     bool ready ();
    25 };
    25 };
    26 
    26 
    27 #endif
    27 #endif
    28