0xtob / dsmi

Automatically exported from code.google.com/p/dsmi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dsmi iphone simulator not working

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. build a simple sending/receiving app for the iphone
2. works fine on iphone/ipod touch <-> dsmi server
3. doesn't work on simulator <-> dsmi server

What is the expected output? What do you see instead?
behaviour should be the same as the device

What version of the product are you using? On what operating system?
Mac OS 10.5.8, iPhone SDK 3.2.1, Xcode 3.1.4, dsmi_iphone 1.0

Please provide any additional information below.
Building the dsmi_iphone source and stepping through in the debugger shows
the socket binding fails when the dsmi server is running, presumably it is
using the same ports? The binding doesn't fail when the dsmi server is not
running but of course that doesn't work either since there's no where to
send the data.


Original issue reported on code.google.com by martin2....@gmail.com on 4 Dec 2009 at 9:34

Actually the fix seems simple. Two things:

1. Set the IPHONE_SENDER_PORT to 9003 so this doesn't clash with the 
PC_SENDER_PORT
on the server. 

2. Check both en0 and en1 interfaces for the broadcast address. en0 seems to 
work on
the device but not on the simulator. en1 works on the simulator but not on the 
device.

Hope this helps!

Original comment by martin2....@gmail.com on 4 Dec 2009 at 11:21

Will fix this for the next update.

Original comment by collin.m...@gmail.com on 3 Jul 2011 at 6:04

  • Changed state: Accepted

Original comment by collin.m...@gmail.com on 3 Jul 2011 at 6:05