summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--comm/Datagram.cc11
-rw-r--r--comm/Datagram.h6
2 files changed, 10 insertions, 7 deletions
diff --git a/comm/Datagram.cc b/comm/Datagram.cc
index bd1c4ba..e7eb577 100644
--- a/comm/Datagram.cc
+++ b/comm/Datagram.cc
@@ -3,7 +3,7 @@
*
* by Michel Beaudouin-Lafon
*
- * Copyright 1990-1993
+ * Copyright 1990-1997
* Laboratoire de Recherche en Informatique (LRI)
*
* Datagrams
@@ -18,9 +18,9 @@
#include <sys/socket.h>
/*?class UchDatagram
-A datagram socket can send to and receive from any other datagram socket,
-unless it is connected.
-Thus, establishing a datagram connection is simple.
+A datagram socket can send to and receive from any other datagram
+socket, unless it is connected. Thus, establishing a datagram
+connection is simple.
Datagram sockets are not reliable: messages can be lost, duplicated,
or be received in a different order. They keep the message
@@ -35,7 +35,8 @@ socket is connected, messages can only be sent to and read from the
connected address. The \fun{Read} and \fun{Write} calls can be used in
this case.
-Before any data can be sent or received, the socket must be set up with \fun{Setup}.
+Before any data can be sent or received, the socket must be set up with \fun{Setup},
+or \fun{Open} followed by \fun{Bind} and \fun{Connect} if necessary.
?*/
/*?
diff --git a/comm/Datagram.h b/comm/Datagram.h
index 954f1e2..cc7798f 100644
--- a/comm/Datagram.h
+++ b/comm/Datagram.h
@@ -3,7 +3,7 @@
*
* by Michel Beaudouin-Lafon
*
- * Copyright 1990-1993
+ * Copyright 1990-1997
* Laboratoire de Recherche en Informatique (LRI)
*
* Datagrams
@@ -16,11 +16,13 @@
#define Datagram_H_
#include "cplus_bugs.h"
+#include "ccu/bool.h"
+#include "ccu/word.h"
#include "Socket.h"
class UchDatagram : public UchSocket {
protected:
- pUchAddress FAddr;
+ UchAddress* FAddr;
public:
UchDatagram (UchAddress* = 0, UchAddress* = 0);