Click here to Skip to main content
15,895,799 members

Comments by Prajakta Bhagwat (Top 8 by date)

Prajakta Bhagwat 4-Aug-12 9:18am View    
Thank you so much friend..
I'll try solving this way.
Prajakta Bhagwat 12-Jun-12 3:06am View    
Thank You,
I'll mind this next time onwards :)
Prajakta Bhagwat 5-Dec-11 7:11am View    
but can u help me with this code i want to asynchronously receive data how can i modify this code?

Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
IPEndPoint iep = new IPEndPoint(IPAddress.Any, 8000);
sock.Bind(iep);
EndPoint ep = (EndPoint)iep;
byte[] data = new byte[1024];
int recv = sock.ReceiveFrom(data, ref ep);
string stringData = Encoding.ASCII.GetString(data, 0, recv);
DialogResult m = MessageBox.Show("You Have received a Message!");
if (m == DialogResult.OK)
{
this.Show();
this.WindowState = FormWindowState.Normal;
}
label1.Text = "Message: " + stringData;
sock.Close();
Prajakta Bhagwat 5-Dec-11 7:07am View    
now my app is working fine I can send data from server to client as i want i got my error! Thanx for concern frnd!!!! TC
Prajakta Bhagwat 5-Dec-11 6:49am View    
look i did try now i am connecting via udp it is working well but in udp everytime i receive data i need to restart the socket? do u have ny such example which receives continuous data?