Click here to Skip to main content
12,251,445 members (60,589 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
Hello,

supose there crore of byte avalable on a port.
when we call
_client.Client.BeginReceive(_recieveBuffer, 0, 1024, SocketFlags.None, new AsyncCallback(OnBytesRecieved), null);
and after it we say
_client.Client.EndRecieve()
then we get some bytes stored in _recievBuffer its ok

now if next time again calling
_client.Client.BeginReceive(_recieveBuffer, 0, 1024, SocketFlags.None, new AsyncCallback(OnBytesRecieved), null);
and
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 10-Oct-12 3:03am
Edited 10-Oct-12 3:45am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,

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

It's an article about network programming.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 10 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100