インスタント メッセンジャーのように動作するプログラムを作成したいと考えています。すでに完成していますが、特定の IP アドレスに文字列を送受信する方法がわかりません。
私はこのものが属するメソッドを自分自身に含めました:
//is called every second and when you commit a message
public void Update(ref eStatus prgmStatus, ref eProfile userProfile)
{
UpdateUI(ref prgmStatus);
[ Some other Update Methods ]
[ Catch the string and add it to userProfile.CurrentChatHistory]
}
public void EnterText(object sender, EventArgs e)
{
_usrProfile.CurrentChatHistory.Add(chatBox.Text);
[ send chatBox.Text to IP 192.168.0.10 (e.g.) ]
}
追加のサーバー ソフトウェアを実行せずに、クライアント ツー クライアント システムを使用したいと考えています。
これを実現するために使用できるシステムの名前空間とメソッドは何ですか?