Wookjin, Na wrote:
> concerning about tcp socket,
> whenever I set REMOTE_CONTROL_TCP_PORT to any port number in
> local_conf.py, then I run freevo. but just error shown like that
> "socket.error: (98, 'Address already in use') inspite of not using the
> port.
>  
> others, I try to modify that code,rc.py like this
> self.sock.bind((self.host, self.port)) to self.sock.bind((self.host, 0))
> in class TcpNetwork:
>  
> and I run freevo, then search tcp port because tcp port assigned
> automatically.
>  
> to check the port, command for sudo netstat -anlp | grep tcp
>  
> I configure my tcp client, then I can connect to freevo. remote control
> works.
>  
> is this bug? or did I misunderstand anything?
>  
> please let me know how can I use TCP for freevo.

Please can you try this:

# freevo prompt
import socket
import config
port = config.REMOTE_CONTROL_TCP_PORT
host = config.REMOTE_CONTROL_TCP_HOST
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.setblocking(0)
sock.bind((host, port))
sock.listen(1)

For me it works without any error on the bind.

Can you try the above as a normal user and as root.

netstat -an shows:
tcp        0      0 127.0.0.1:16311         0.0.0.0:*
LISTEN      3503/python


Duncan

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to