Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Question about port already in use

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 <21_lahm@xxxxxxxxxxxxx>:

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
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top