Click here to Skip to main content
15,914,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling Functions in Other Forms. Pin
Michael Potter2-Feb-05 11:36
Michael Potter2-Feb-05 11:36 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner793-Feb-05 1:37
Dwayner793-Feb-05 1:37 
GeneralRe: Calling Functions in Other Forms. Pin
Robert Rohde2-Feb-05 8:44
Robert Rohde2-Feb-05 8:44 
GeneralRe: Calling Functions in Other Forms. Pin
Dwayner792-Feb-05 11:21
Dwayner792-Feb-05 11:21 
GeneralImpersonation Pin
Esmo20002-Feb-05 4:12
Esmo20002-Feb-05 4:12 
GeneralRe: Impersonation Pin
Esmo20002-Feb-05 10:47
Esmo20002-Feb-05 10:47 
GeneralFades / Swipe in directX Pin
SquallBlade2-Feb-05 3:59
SquallBlade2-Feb-05 3:59 
GeneralNetworkStream - Asynchronous vs Synchronous Pin
Tristan Rhodes2-Feb-05 3:28
Tristan Rhodes2-Feb-05 3:28 
I've got a network stream. I have it working both Synchronously, and Asynchronously. My problem is this. I'd like to serialise objects to it. Simple enough Synchronously, serialise at one end, deserialise at the other.

But i'm not entirely sure what's the best approach.

What are the benefits of each? I can't see an easy way to serealise something to an Asynchronous stream. I'd need to declare how many packets and of what size I am sending, before I begin the send, then i'd need to serialize to a memory stream before reading the packets into a buffer and sending them down the network stream. While at the same time, keeping track of what i've sent so far, and how much is left, as well as what other objects are queued to follow the current one. This strikes me as slow and inefficient.

The benefits of asynchronous network handling is the event handles and system thread that manages them, meaning I don't need to poll for pending data.

Ultiately, given these tradeoffs, what is the standard way of handling this situation in .net and C#? I'm leaning towards the simple serialization approach, but if i was say, sending a large file, it could clog up the network for a long time.

What do you advise?

Cheers

Cata
GeneralReally simple question... Pin
Gavin Jeffrey2-Feb-05 2:48
Gavin Jeffrey2-Feb-05 2:48 
GeneralRe: Really simple question... Pin
aswanee2-Feb-05 3:27
aswanee2-Feb-05 3:27 
GeneralRe: Really simple question... Pin
Dave Kreskowiak2-Feb-05 4:42
mveDave Kreskowiak2-Feb-05 4:42 
GeneralRTD (real Time Data) problem Pin
aswanee2-Feb-05 2:12
aswanee2-Feb-05 2:12 
GeneralRe: RTD (real Time Data) problem Pin
Dave Kreskowiak2-Feb-05 4:38
mveDave Kreskowiak2-Feb-05 4:38 
Questionhow to read an xml file Pin
Bhupendr2-Feb-05 1:13
Bhupendr2-Feb-05 1:13 
AnswerRe: how to read an xml file Pin
Gavin Jeffrey2-Feb-05 3:00
Gavin Jeffrey2-Feb-05 3:00 
Generalagain: how to read an xml file Pin
Bhupendr2-Feb-05 18:01
Bhupendr2-Feb-05 18:01 
GeneralRe: again: how to read an xml file Pin
Gavin Jeffrey2-Feb-05 19:30
Gavin Jeffrey2-Feb-05 19:30 
GeneralExtract data and create xml for input Pin
dhol2-Feb-05 0:41
dhol2-Feb-05 0:41 
GeneralRe: Extract data and create xml for input Pin
Colin Angus Mackay2-Feb-05 2:47
Colin Angus Mackay2-Feb-05 2:47 
GeneralDataGrid (web) events not working when using collection class Pin
acidek2-Feb-05 0:35
acidek2-Feb-05 0:35 
GeneralReading text from a pdf file Pin
Member 16488292-Feb-05 0:24
Member 16488292-Feb-05 0:24 
GeneralRe: Reading text from a pdf file Pin
Colin Angus Mackay2-Feb-05 2:45
Colin Angus Mackay2-Feb-05 2:45 
GeneralShow ToolTip regardless of Enabled state Pin
Corinna John1-Feb-05 23:24
Corinna John1-Feb-05 23:24 
GeneralDropDownButton Pin
lee meng1-Feb-05 22:51
lee meng1-Feb-05 22:51 
GeneralRe: DropDownButton Pin
Corinna John1-Feb-05 23:35
Corinna John1-Feb-05 23:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.