Changeset 378:41e3c2a3721c in freeDiameter for freeDiameter/tcp.c
- Timestamp:
- Jul 5, 2010, 4:21:22 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/tcp.c
r258 r378 170 170 } 171 171 172 173 /* Get the local name of a TCP socket -- would be nice if it did not return "0.0.0.0"... */174 int fd_tcp_get_local_ep(int sock, sSS * ss, socklen_t *sl)175 {176 TRACE_ENTRY("%d %p %p", sock, ss, sl);177 CHECK_PARAMS( ss && sl );178 179 *sl = sizeof(sSS);180 CHECK_SYS(getsockname(sock, (sSA *)ss, sl));181 182 return 0;183 }184 185 172 /* Get the remote name of a TCP socket */ 186 173 int fd_tcp_get_remote_ep(int sock, sSS * ss, socklen_t *sl) … … 194 181 return 0; 195 182 } 183
Note: See TracChangeset
for help on using the changeset viewer.