if you are using the python client, a free socket port should be
automatically obtained when calling traci.start().
If you are using the C++ client, you can use the method getFreeSocketPort()
from src/foreign/tcpip/socket.h

regards,
Jakob

Am So., 7. Apr. 2019 um 20:43 Uhr schrieb <[email protected]>:

>
> Hi guys,
>
> I am running a bunch of simulation with the help of traci. But sometimes
> the program is forced to stop due to the error "Error:
> tcpip::Socket::accept() Unable to create listening socket: Address already
> in use Quitting (on error)."
>
> My question is whether the program can automatically handle with the error
> and find the appropriate port.
>
> Can anybody help me with this problem?
>
> Thank you.
>
> Yu Tang
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to