Trouble with RPC

Ok i understand how an rpc is sent but how the hell do you read it on a client and on the server?

so far htis is what i have,

	void SendMSG(string msg)
	{
		Debug.Log("Sending msg: " + msg);
		NetworkViewID VID = Network.AllocateViewID();
		networkView.RPC("SendRpcMsg",RPCMode.AllBuffered, VID , msg);
		Debug.Log("Msg sent");
	}

	[RPC]
	void SendRpcMsg(NetworkViewID ID, string msg)
	{
		string RpcMsg = msg;
		Debug.Log("Msg = "+ msg);
	}

Are you getting any error messages wihen you try to use this?

no i found out from a sample you just get the value that was sent via the function itself/