public void sendMsg( GameNetMessage.NetMsgInterface msg ) { byte[] b = GameDefine.structToBytes( msg ); oBuffer.write ( b ); }
bool sendMsgBlock( GameNetMessage.NetMsgInterface msg ) { socket.Blocking = true; byte[] b = GameDefine.structToBytes( msg ); int count = socket.Send( b ); if ( count < 0 ) { return false; } return true; }