ShootManiaXMLRPC.XmlRpc.XmlRpc.SendRpc C# (CSharp) Méthode

SendRpc() private static méthode

private static SendRpc ( Socket in_socket, byte in_data ) : bool
in_socket System.Net.Sockets.Socket
in_data byte
Résultat bool
        private static bool SendRpc(Socket in_socket, byte[] in_data)
        {
            int offset = 0;
            int len = in_data.Length;
            int bytesSent;
            try
            {
                while (len > 0)
                {
                    bytesSent = in_socket.Send(in_data, offset, len, SocketFlags.None);
                    len -= bytesSent;
                    offset += bytesSent;
                }
                return true;
            }
            catch
            {
                return false;
            }
        }