Welcome

This is a blog sharing what i have learn and experience from my internship in A*Star IHPC
- Zac Kwan

Thursday, January 27, 2011

Day 76 - Done with most, improving the UI now

Continue working on the bonjour locking parts. After some thinking when i was on the way home yesterday, still doesn't understand why part of the byte is being stuck in the queue and doesn't get send over. Came up with two solution, either create a thread to run and will stop after 1 sec to unlock with a timer that will be reset-ed when data is received. The other one is to add in a method to send the package without splitting and queuing.

We decided on the thread at first, so we started researching and find document about how to get it working. But it look pretty tedious and is process unfriendly. So we went back to the sending package without queue. After looking at the old project, we set it up pretty fast. BUT, the result wasn't what we expected, found out that because during receive data, we will look at the package received and join it together, but because this is a special case, it didn't go pass the loop. We thought about it, but there seems to be no way fixing it.

After lunch, we work on the thread locking. But alex have found out with something in the documentation that uses perform selector after 1 second. So i googled it and found a post that someone is trying to do something that we wanted as well. Manage to get it set up, and get it working too! But there are some flaw in it. We make use of other build in method to solve it.

The rest of the day is spent correcting some code and also swapping the pitch gesture with the tap gesture function.

No comments:

Post a Comment