Move API for socket factory to a Socket::CreateSocket () factory method

This commit is contained in:
Tom Henderson committed 2008-05-12 06:39:00 -07:00
1 parent 3ebec1046c
commit a042d0bbef
11 files changed
+38 -27

No files matched your search

+11
View File
@@ -98,6 +98,17 @@ public:
SOCKET_ERRNO_LAST
};
/**
* This method wraps the creation of sockets that is performed
* by a socket factory on a given node based on a TypeId.
*
* \return A smart pointer to a newly created socket.
*
* \param node The node on which to create the socket
* \param tid The TypeId of the socket to create
*/
static Ptr<Socket> CreateSocket (Ptr<Node> node, TypeId tid);
/**
* \return the errno associated to the last call which failed in this
* socket. Each socket's errno is initialized to zero