Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

supose there crore of byte avalable on a port.
when we call
C#
_client.Client.BeginReceive(_recieveBuffer, 0, 1024, SocketFlags.None, new AsyncCallback(OnBytesRecieved), null);

and after it we say
C#
_client.Client.EndRecieve()

then we get some bytes stored in _recievBuffer its ok

now if next time again calling
C#
_client.Client.BeginReceive(_recieveBuffer, 0, 1024, SocketFlags.None, new AsyncCallback(OnBytesRecieved), null);

and
C#
TcpClient.Endrecieve()

so here againt may i get same data whatever we have recieved?????
or it stars reading from beginning and after each recieve pointer moved next??
Posted
Updated 10-Oct-12 3:45am
v2

1 solution

Hi,

I think this article on CodeProject can help you:
TCP/IP Chat Application Using C#[^]

It's an article about network programming.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900