You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OMNeT++ Users
hello
How can I change my destination address of tcp socket when simulation running?
In my tcp client app an algorithm runs and chooses the best server for his work, then it should send it's packet to this server. when the simulation starts the connect function of tcp socket runs and make a new socket for the src and dst port and address. but how can I change this dst address at simulation time?
thanks for your help.
Alfonso Ariza Quintana
unread,
Dec 7, 2016, 5:37:02 PM12/7/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omn...@googlegroups.com
The same that the first, but before you need to close the previous session before that you create the new session
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OMNeT++ Users, aari...@hotmail.com
thanks for your help.
I do that but there is another error. In my simulation I have multiple nodes connecting to one server at same time. after running simulation and sending some packets i recieve this error! "Address already in use: there is already a connection listening on server address:server port.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OMNeT++ Users, aari...@hotmail.com
I have another question. I should close the socket befor sending new packet in sendRequest function? or closing by setting server close parameter to true in the packet? or closing the socket from server side after sending the reply message?