Update: socket programming tips.

Update: socket programming tips.