tweak formatting
couple fixes for fbsd
change int usage to cs_sock_t.

Replace the remaining instances where int is used as FD type with
cs_sock_t. This fixes a considerable number of warnings on Win32.
Fixed a bug where a single large write would cause a CPU spike and data would be sent at a snails pace. This was due to the buffer m_sSend being erase from the front after every small write/send operation. The fix to this is to simple track a last sent position in m_sSend and then do the erase/clear operation at once when the writing is done.
missed a spot to reset write buffer position
protect literal, unmodified access to m_sSend
Add support for character encodings