lyqyd / ComputerCraft-LyqydNet

A set of APIs and scripts for ComputerCraft to establish and operate an in-game computer network with routing.
22 stars 4 forks source link

"SR" packet eaten by netDaemon() #17

Open davehayes opened 10 years ago

davehayes commented 10 years ago

In using the connection API, I can never receive an SR via conn:open() due to it falling off the end of netDaemon().

lyqyd commented 10 years ago

I'm not sure I fully understand the issue here--netDaemon isn't supposed to handle those packets, they should be getting redirected to the appropriate server program when they are received. Do you have some code that demonstrates the issue to aid in reproducing the error?

davehayes commented 10 years ago

http://pastebin.com/CumvNMGQ

Get two computers and copy this to /rom/programs. Then on one run "sa_pinger router". Next on the other, run "sa_pinger". :)

lyqyd commented 10 years ago

Hmm. I'm having trouble reproducing the situation on my end. It seems like the pinger client isn't actually trying to interact with the echo daemon at all. The only traffic I am seeing between them (router is 14, client 16) is here. The pinger does show the router in its host table, and reading through the code, I'm not seeing any obvious issues. Have I set this up wrong?

Sorry for the delayed response, by the way. Things have been a little hectic on my end the last week or so!