Move API for socket factory to a Socket::CreateSocket () factory method
This commit is contained in:
1 parent
3ebec1046c
commit
a042d0bbef
11 files changed
+38
-27
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user