equal
deleted
inserted
replaced
95 ERROR_INVAL, |
95 ERROR_INVAL, |
96 ERROR_BADF, |
96 ERROR_BADF, |
97 ERROR_NOROUTETOHOST, |
97 ERROR_NOROUTETOHOST, |
98 SOCKET_ERRNO_LAST |
98 SOCKET_ERRNO_LAST |
99 }; |
99 }; |
|
100 |
|
101 /** |
|
102 * This method wraps the creation of sockets that is performed |
|
103 * by a socket factory on a given node based on a TypeId. |
|
104 * |
|
105 * \return A smart pointer to a newly created socket. |
|
106 * |
|
107 * \param node The node on which to create the socket |
|
108 * \param tid The TypeId of the socket to create |
|
109 */ |
|
110 static Ptr<Socket> CreateSocket (Ptr<Node> node, TypeId tid); |
100 |
111 |
101 /** |
112 /** |
102 * \return the errno associated to the last call which failed in this |
113 * \return the errno associated to the last call which failed in this |
103 * socket. Each socket's errno is initialized to zero |
114 * socket. Each socket's errno is initialized to zero |
104 * when the socket is created. |
115 * when the socket is created. |