| ||||||
| 5/17 |
| 2003/11/6 [Computer/SW/Languages/C_Cplusplus] UID:10967 Activity:nil |
11/6 How do i get the local port number of a socket after it connects
in c? (solaris). i am doing socket() followed by connect()...
Thanks a lot!!
\_ I believe you can check the sin_port field of the sockaddr_in
structure after calling connect(). |