get sockaddr_in from socket
if i have a connected socket, can i get the sockaddr_in. my problem is this: i open a tcp connection using INADDR_ANY between the client and server. Now when i want to open a UDP socket connecting the server and client, but i cant use INADDR_ANY on the UDP socket, but i cant receive any udp data. So on the server i want to retreive the ip address the tcp connection is using (incase the server has multiple network cards) and open up my udp port over that network card.
The accept call will fill in the address for you.
EDIT: Oh, you want the server IP address. Hm. Dunno.
EDIT: Oh, you want the server IP address. Hm. Dunno.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement