Changing socket remote address

  • Thread starter Thread starter Boomi.s
  • Start date Start date
B

Boomi.s

Guest
Hi All,

I need your inputs on how to change the socket remote address.

Initially, when i create a datagram socket, it is bounded to local transport address and then remote address assigned. The socket is working and able send/receive data to the server.

After sometime, i need to change the remote address so that the application can communicate with different server. So i am clearing the previous assigned remote address by SIO_WSK_SET_REMOTE_ADDRESS as mentioned here.

SIO_WSK_SET_REMOTE_ADDRESS - Windows drivers

Then changing the socket remote address using the same SIO_WSK_SET_REMOTE_ADDRESS ioctl but specifying new IP address value. The IOCTL call was success, but for some reason the socket remote address was not changed and connection lost.

Any inputs on what i am doing wrong here?

Thanks,

Boomi

Continue reading...
 

Similar threads

B
Replies
0
Views
8
Brandon LeBlanc
B
N
Replies
0
Views
8
Nicole Dezen, CVP, Device Partner Sales
N
Y
Replies
0
Views
12
Yusuf Mehdi, Corporate Vice President &#38
Y
Back
Top