When i was at home yesterday, i read up on the "godly" pdf found by alex yesterday that teach Cocoa. Just read the NSNetService part where they talk about the socket. The book explain very well on every step of code that it teaches and also explain the different which include stuff that i did not understand before. Manage to saw a session where the book describe exactly what we want to do to allow passing of data back and forth. We manage to pass forth but not back coz we only manage to successfully configure the instream but not the outstream. Knowing what need to be done we change the method today.
We changes our server class to the delegate and try some run and before lunch we are able to get it to work. However we notice that the data byte send is sometime being combine when received resulting in the unachrieve of data fail with exception. Try various of way to solve it but fail to work. Did some search and came to this book again. The book again! explaining how it can be done using splitting, append leftover packet so we will do all this in monday.
No comments:
Post a Comment