Changeset 4343 for pjproject/trunk/pjlib/include/pj/sock.h
- Timestamp:
- Feb 7, 2013 9:35:34 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/sock.h
r3841 r4343 1167 1167 pj_uint16_t port); 1168 1168 1169 /** 1170 * Bind the IP socket sockfd to the given address and a random port in the 1171 * specified range. 1172 * 1173 * @param sockfd The socket desriptor. 1174 * @param addr The local address and port to bind the socket to. 1175 * @param port_range The port range, relative the to start port number 1176 * specified in port field in #addr. Note that if the 1177 * port is zero, this param will be ignored. 1178 * @param max_try Maximum retries. 1179 * 1180 * @return Zero on success. 1181 */ 1182 PJ_DECL(pj_status_t) pj_sock_bind_random( pj_sock_t sockfd, 1183 const pj_sockaddr_t *addr, 1184 pj_uint16_t port_range, 1185 pj_uint16_t max_try); 1186 1169 1187 #if PJ_HAS_TCP 1170 1188 /**
Note: See TracChangeset
for help on using the changeset viewer.