Re: Intermittent "Address already in use" error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



John,

> From time to time, I encounter an "Address already in use" error when
> attempting to bind a socket to a particular local adapter.  The python
> code looks like:
>
>   Listener = BluetoothSocket(SCO)
>   Listener.bind((addr1, ))
>   Listener.listen(1)

Is the error appearing when you want to rebind a short time after it
was used? Maybe you need to setsockopt SO_REUSEADDR just like you
would if you wanted to quickly rebind a tcp serversocket.

-- 
Brad Midgley
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux