summaryrefslogtreecommitdiff
path: root/comm/Datagram.h
diff options
context:
space:
mode:
authorchatty1993-04-07 11:50:31 +0000
committerchatty1993-04-07 11:50:31 +0000
commitba066c34dde204aa192d03a23a81356374d93731 (patch)
tree39391f6235d2cf8a59a0634ac5ea430cdd21f5d4 /comm/Datagram.h
parent05ab076e1c2a9ca16472f9a6b47b8d22914b3783 (diff)
downloadivy-league-ba066c34dde204aa192d03a23a81356374d93731.zip
ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.gz
ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.bz2
ivy-league-ba066c34dde204aa192d03a23a81356374d93731.tar.xz
Initial revision
Diffstat (limited to 'comm/Datagram.h')
-rw-r--r--comm/Datagram.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/comm/Datagram.h b/comm/Datagram.h
new file mode 100644
index 0000000..3ac6b36
--- /dev/null
+++ b/comm/Datagram.h
@@ -0,0 +1,40 @@
+/*
+ * The Unix Channel
+ *
+ * by Michel Beaudouin-Lafon
+ *
+ * Copyright 1990-1993
+ * Laboratoire de Recherche en Informatique (LRI)
+ *
+ * Datagrams
+ *
+ * $Id$
+ * $CurLog$
+ */
+
+#ifndef Datagram_H_
+#define Datagram_H_
+
+#include "cplus_bugs.h"
+#include "Socket.h"
+
+class UchDatagram : public UchSocket {
+protected:
+ pUchAddress FAddr;
+public:
+ UchDatagram ();
+ UchDatagram (UchAddress*, UchAddress*);
+ ~UchDatagram ();
+ UchDatagram (const UchDatagram& d);
+ UchChannel* Copy () const;
+ int SockType ();
+ int Send (byte*, int, UchAddress&);
+ int Receive (byte*, int);
+inline UchAddress* From () { return FAddr; }
+ int Reply (byte*, int);
+ int Send (UchMsgBuffer& b, UchAddress& a, bool = FALSE);
+ int Receive (UchMsgBuffer& b);
+ int Reply (UchMsgBuffer& b, bool = FALSE);
+};
+
+#endif /* Datagram_H_ */