How to block one IP Address that is connected to the server, when the server is sending messages. My Sending message option program is shown below.
private void buttonSendMsg_Click(object sender, EventArgs e) {
try
{
Object objData = richTextBoxSendMsg.Text;
byData = System.Text.Encoding.ASCII.GetBytes(objData.ToString());
for (int i = 0; i < m_clientCount; i++)
{
if (m_workerSocket[i] != null)
{
if (m_workerSocket[i].Connected)
{
m_workerSocket[i].Send(byData);
}
}
}
}