Click here to Skip to main content
15,916,842 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strange Problem Regarding TabIndex Pin
RizwanSharp3-Aug-06 19:32
RizwanSharp3-Aug-06 19:32 
Questionconnection question Pin
skyeddie3-Aug-06 6:01
skyeddie3-Aug-06 6:01 
AnswerRe: connection question Pin
Rob Graham3-Aug-06 6:17
Rob Graham3-Aug-06 6:17 
GeneralRe: connection question Pin
Not Active3-Aug-06 7:32
mentorNot Active3-Aug-06 7:32 
AnswerRe: connection question Pin
Not Active3-Aug-06 7:33
mentorNot Active3-Aug-06 7:33 
Questionhi, [modified] Pin
Sunny H3-Aug-06 6:00
Sunny H3-Aug-06 6:00 
AnswerRe: hi, Pin
Ingo3-Aug-06 6:33
Ingo3-Aug-06 6:33 
QuestionHow can I run an executable from within my C# app Pin
sas94913-Aug-06 5:32
sas94913-Aug-06 5:32 
AnswerRe: How can I run an executable from within my C# app Pin
Not Active3-Aug-06 5:42
mentorNot Active3-Aug-06 5:42 
AnswerUse Rar Pin
Ennis Ray Lynch, Jr.3-Aug-06 5:45
Ennis Ray Lynch, Jr.3-Aug-06 5:45 
AnswerRe: How can I run an executable from within my C# app Pin
Dustin Metzgar3-Aug-06 5:54
Dustin Metzgar3-Aug-06 5:54 
QuestionXML Question [modified] Pin
SoftcodeSoftware3-Aug-06 5:18
SoftcodeSoftware3-Aug-06 5:18 
AnswerRe: XML Question Pin
Stefan Troschuetz3-Aug-06 5:28
Stefan Troschuetz3-Aug-06 5:28 
AnswerRe: XML Question Pin
SoftcodeSoftware3-Aug-06 5:38
SoftcodeSoftware3-Aug-06 5:38 
Questioninterupting the loop with the button [modified] Pin
Blubbo3-Aug-06 5:00
Blubbo3-Aug-06 5:00 
AnswerRe: interupting the loop with the button Pin
User 66583-Aug-06 5:09
User 66583-Aug-06 5:09 
AnswerRe: interupting the loop with the button Pin
Not Active3-Aug-06 5:14
mentorNot Active3-Aug-06 5:14 
AnswerRe: interupting the loop with the button Pin
Stefan Troschuetz3-Aug-06 5:21
Stefan Troschuetz3-Aug-06 5:21 
GeneralRe: interupting the loop with the button Pin
Blubbo3-Aug-06 5:26
Blubbo3-Aug-06 5:26 
AnswerRe: interupting the loop with the button Pin
Nader Elshehabi3-Aug-06 5:31
Nader Elshehabi3-Aug-06 5:31 
QuestionAsynchronous socket question Pin
Madmaximus3-Aug-06 4:39
Madmaximus3-Aug-06 4:39 
AnswerRe: Asynchronous socket question Pin
Tim Kohler3-Aug-06 5:56
Tim Kohler3-Aug-06 5:56 
GeneralPrefix Pin
Ennis Ray Lynch, Jr.3-Aug-06 5:59
Ennis Ray Lynch, Jr.3-Aug-06 5:59 
AnswerRe: Asynchronous socket question Pin
RizwanSharp3-Aug-06 6:11
RizwanSharp3-Aug-06 6:11 
The more appealing and real world solution for all types of data transfer is to prefix each messaeg with its length.

Procedure is as follow.

Sending Part:

1) Calculate the Number of bytes produced by a message.
2) Store length as an integer value.
3) Convert the Length (integer) into bytes using BitConverter.GetBytes(messageLength) method.
4) Send these bytes on stream.
5) Send the original message.

Receiving Part:

1) Read 4 bytes from the stream Asynchronously.
2) Convert these bytes into integer value using BitConverter.ToInt32(buffer,0)
3) Now creat a Memory Stream and loop on it untill that message size is met.

Its the best technique in my knowledge and supports in Network delay situation for other type of data (Not String)

If you have further queries, feel free to conact me Wink | ;)
rizwansharp@hotmail.com

Best Regards,
Rizwan
QuestionImpersonation + Process.Start Pin
Gonzalo Brusella3-Aug-06 4:12
Gonzalo Brusella3-Aug-06 4:12 

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.