Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to convert this into c# Pin
Pete O'Hanlon6-Jun-08 3:49
mvePete O'Hanlon6-Jun-08 3:49 
Questionsending remainder mail at regular intervals Pin
fakeer4uever6-Jun-08 2:02
fakeer4uever6-Jun-08 2:02 
AnswerRe: sending remainder mail at regular intervals Pin
Ashfield6-Jun-08 2:27
Ashfield6-Jun-08 2:27 
AnswerRe: sending remainder mail at regular intervals Pin
Russell Jones6-Jun-08 2:52
Russell Jones6-Jun-08 2:52 
AnswerRe: sending remainder mail at regular intervals Pin
Gareth H6-Jun-08 3:20
Gareth H6-Jun-08 3:20 
AnswerRe: sending remainder mail at regular intervals Pin
Vasudevan Deepak Kumar6-Jun-08 3:40
Vasudevan Deepak Kumar6-Jun-08 3:40 
AnswerRe: sending remainder mail at regular intervals Pin
#realJSOP6-Jun-08 3:44
professional#realJSOP6-Jun-08 3:44 
QuestionTransmission of Video File Pin
DeepOceans6-Jun-08 1:24
DeepOceans6-Jun-08 1:24 
Hi,
I'm transmitting recorded video file over LAN using UDP but sometimes file transmit successfully and sometimes at receiving side(client) it doesn't receive properly whereas at server side I get transmitting message.
Please See my code and give me suggestion to overcome this problem.


 public void filercvold()<br />
            {                         <br />
               <br />
            outStream = File.OpenWrite(filepath);<br />
            bufOutStream = new BufferedStream(outStream);<br />
               <br />
             i=0;<br />
            while (i<=fsize)//fsize is filesize<br />
            {<br />
                try<br />
                {<br />
                 <br />
                        <br />
                 idsock.ReceiveFrom(rcvfilebuf, ref idep);<br />
                       <br />
               bufOutStream.Write(rcvfilebuf, 0, rcvfilebuf.Length);<br />
                     <br />
                  i++;<br />
            <br />
                }<br />
                catch (SocketException ttt)<br />
                {<br />
                    MessageBox.Show(ttt.Message);<br />
                }<br />
                       <br />
            }<br />
           <br />
            bufOutStream.Flush();<br />
            bufOutStream.Close();                     <br />
            outStream.Close();            <br />
            MessageBox.Show("File is completly received!!");<br />
}

//outStream is FileStream Object
//bufOutStream is BufferedStream Object
idsock is socket object
// rcvfilebuf = new byte[16384]; 16KB packet
Now whenever I got last msg "File is completly received" File fully saved and run properly. but when I dont get this msg as at server side I got transmitting msg but at same time at client side above notification doesn't show as client become stuck or remain in this statement " ReceiveFrom(rcvfilebuf, ref idep);"
Now tell me how to check this or rcv full video every time as it doesnt happen everytime.By same code I got this msg and run video file at client but by same code above problem I face so what is main reason or where I'm doing wrong.
Thanx in advance.
Regards,

Shanzay

AnswerRe: Transmission of Video File Pin
#realJSOP6-Jun-08 1:41
professional#realJSOP6-Jun-08 1:41 
Questionusing Microsoft.Office.Interop.Word.Document Pin
ShimnaMukundan6-Jun-08 1:24
ShimnaMukundan6-Jun-08 1:24 
QuestionStart Window Services Pin
Tejal Bhavsar6-Jun-08 1:08
Tejal Bhavsar6-Jun-08 1:08 
AnswerRe: Start Window Services Pin
Programm3r6-Jun-08 1:32
Programm3r6-Jun-08 1:32 
GeneralRe: Start Window Services Pin
Tejal Bhavsar6-Jun-08 1:56
Tejal Bhavsar6-Jun-08 1:56 
AnswerRe: Start Window Services Pin
#realJSOP6-Jun-08 1:42
professional#realJSOP6-Jun-08 1:42 
GeneralRe: Start Window Services Pin
Tejal Bhavsar6-Jun-08 2:17
Tejal Bhavsar6-Jun-08 2:17 
GeneralRe: Start Window Services Pin
#realJSOP6-Jun-08 3:48
professional#realJSOP6-Jun-08 3:48 
QuestionCustom protocol handler Pin
asma_panjabi6-Jun-08 0:49
asma_panjabi6-Jun-08 0:49 
QuestionHow to know nbr of pages to print Pin
Kr_Chandan5-Jun-08 23:49
Kr_Chandan5-Jun-08 23:49 
AnswerRe: How to know nbr of pages to print Pin
Pete O'Hanlon6-Jun-08 1:45
mvePete O'Hanlon6-Jun-08 1:45 
GeneralRe: How to know nbr of pages to print Pin
Kr_Chandan6-Jun-08 2:34
Kr_Chandan6-Jun-08 2:34 
AnswerRe: How to know nbr of pages to print Pin
Gareth H6-Jun-08 3:45
Gareth H6-Jun-08 3:45 
QuestionCrystal Report Requirements Pin
Programm3r5-Jun-08 23:27
Programm3r5-Jun-08 23:27 
AnswerRe: Crystal Report Requirements Pin
Harvey Saayman6-Jun-08 7:07
Harvey Saayman6-Jun-08 7:07 
AnswerRe: Crystal Report Requirements Pin
egenis8-Jun-08 20:47
egenis8-Jun-08 20:47 
QuestionHow to Insert more than one row in a single click using stored procedure Pin
NK75-Jun-08 22:57
NK75-Jun-08 22:57 

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.