Re: Can someone help me
- From: "Jon Skeet [C# MVP]" <skeet@xxxxxxxxx>
- Date: 26 Jan 2006 03:16:25 -0800
Chi wrote:
> what is the "unable to write data to the transport connection"
That's hard to say with no information about where you're getting it,
or under what situation.
> I use the oreilly , programming c#
So was this code taken directly from the book, or is that just what
you're learning from?
One thing which concerns me is that your OnReadComplete assumes that
whenever you've successfully read a piece of data, that it must contain
a complete filename. What happens if a long filename is sent which is
split over multiple packets, for instance?
Treat it as a stream of data, with no end other than when the
connection is dropped. If you need to signal one piece of data, either
have something saying when it's ended, or specify to start with how
long that piece of data is.
Jon
.
- Follow-Ups:
- Re: Can someone help me
- From: Chi
- Re: Can someone help me
- References:
- Can someone help me
- From: Chi
- Can someone help me
- Prev by Date: Re: Anonymous Methods
- Next by Date: Re: Trouble with using User Control in different projects
- Previous by thread: Can someone help me
- Next by thread: Re: Can someone help me
- Index(es):
Relevant Pages
|