Dan,

I'm running OSX 10.9.5 and python 2.7.1. Your test program also didn't work 
here. For whatever reason, this one does:

from socket import socket, AF_INET, SOCK_DGRAM
sock = socket (AF_INET, SOCK_DGRAM)
sock.bind (('127.0.0.1', 2237))
while True:
        data, addr = sock.recvfrom(1024)
        print data


--
David Tiller
Sr. Architect/Lead Consultant | CapTech
(804) 304-0638 | 
[email protected]<mailto:[email protected]>



On Aug 19, 2016, at 10:41 PM, Dan - VA3MA <[email protected]<mailto:[email protected]>> 
wrote:

Hi
I’ve written a small Python program to fetch the UDP data sent by WSJT-X on 
localhost port 2237.
It is listed below
It can get a socket connection to WSJT-X but it then just sits waiting to 
receive.
I’ve tried everything I know of the get it to receive - even running as root.
But nothing - it just sits waiting for some data at statement  [sock.recv(1024)]

Would appreciate any thoughts and suggestions to get this working on OSX El Cap.
( the same program runs fine under Windows! - as Bill G4WJS as shown me)


here is the program

>>> from socket import socket, AF_INET, SOCK_DGRAM
>>> sock = socket (AF_INET, SOCK_DGRAM)
>>> sock.bind (('127.0.0.1', 2237, ))
>>> while True:
...     sock.recv(1024)
...


Thanks & 73
Dan VA3MA



------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to