In C#, how to change/increase the size for a byte array buffer to be sent over a tcp stream? on the server side, i have something like this: while(i != 100) { streamWriter.writeline("data"); }
Now, on the client side, i saved every data sent to me. However, only half or so of the data is being sent, the last line in my data.txt file says "unable to read data from the transport connection". And i think it has something to do with the buffer size. So i need to increase it... THanks for the help.:)
Gregg Holter
Posts
-
Change Buffer -
Equivalent of Delay in C#?Thanks Senthil!!!:)
-
Equivalent of Delay in C#?hi! How could i implement delay in c#? that will logicallylook like this:
while { process1(); delay(5); }
thanks!!! -
Looking for a good C# to VB.NET converteryou could try this link: http://www.kamalpatel.net/ConvertCSharp2VB.aspx[^] hope it helps. Goodluck!
-
HELP pls!!!!Yes! that's exactly how i did it.. I look on a couple of samples in msdn.. thanks!!! :)
-
HELP pls!!!!that didn't work, i've tried it... thanks anyway :)
-
HELP pls!!!!I would like to create a class that could be used to return values. I stored those values in a property so at times I will just retrieve it. My class looks like this:
Class1 { private string _name; public Class1(){} public string Name { get { return _name; } set { _name = value; } } }
My problem now, lies here: I would like to call those property in a way that "name" variable is an array-like? Meaning if i will use this class, I could have code like this:Class1 c1 = new Class1(); string name1 = c1.Name[0]; string name2 = c1.Name[1]; ... ... ...
Could anyone tell me if it's possible to have a property which is array-like? If yes, how is it done? Thank you very much!!!:):):) -
Getting all the threads you createdIs there a way if i want to read only the threads that I created. Say, i created a thread in C#, lounge, XML forum, then it will only show the threads and replies associated with that thread. I find it difficult to navigate through the entire forum especially if i've posted a lot. Thanks for considering this.:)
-
I need to discover mobile devices ID/PINyou can actually look at ur mobile device's Settings. There is an Asset Viewer there that tells you ur device's identity. :)
-
Need Code in C# forAs what a great mutant once said, "Sometimes the mind needs to discover things for itself." I certainly agree with Christian and will certainly encourage you to stretch your God given nuts!:)
-
Client/ServerThanks Robert!!!:) ---------------------- Seeing the infinite...
-
Client/ServerCould anyone provide me with a simple C#'s client/server application. I am into socket programming with TCP/IP as my protocol.. Thanks in advance. ---------------------- Seeing the infinite...
-
relative XML file pathHi! Try this: private string m_strFileName = ".\\account.xml"; ---------------------- Seeing the infinite...
-
Would like to work in the UShow exactly would that help me?
-
Encounter error in XMLHi David!I was able to fix it. I simply forget to close the node:) Thanks for the help. ---------------------- Seeing the infinite...
-
Adobe Acrobat not openingThanks for the info... ---------------------- Seeing the infinite...
-
Adobe Acrobat not openingYup, I already tried uninstalling and reinstalling the software. I even run Anti Virus scan but to no good... :doh: ---------------------- Seeing the infinite...
-
Would like to work in the USWhat could be the fastest way of getting employed in an IT company in US if I'm coming from country somewhere in Asia? I am already a BS Computer Science Degree holder with an outstanding academic performance (even got an honor during graduation). Right now I am employed in an IT comapny here in Asia but learned that money is fast in US. Thanks for your help! ---------------------- Seeing the infinite...
-
Adobe Acrobat not openingMy Version is Adobe Acrobat 6.0 Professional. I was able to use it for quite sometime, however just recently, for some reason that I don't know, it stop working. The case is this: Everytime I open my Adobe, it just run up until it flashes the main screen. Then it didn't load it's application. When I look into my Windows Task Manager's Processes button, I saw that Acrobat.exe is there and it's consuming much CPU and memory usage (of upto 100%). Reading PDF books is very important to the nature of my work so please help me as soon as possible.. THanks!:) ---------------------- Seeing the infinite...
-
Encounter error in XMLHere's my code: try { _strContent = "Ethan" _xmlDoc.Load(".\\EMP.xml"); _docFrag = _xmlDoc.CreateDocumentFragment(); _docFrag.InnerXml = _strContent; _xmlDoc.DocumentElement.AppendChild(_docFrag); _xmlDoc.Save(".\\EMP.xml"); } catch(Exception exc) { MessageBox.Show(exc.ToString()); } The EMP.xml is already existing. I just used the above block of code to add new nodes into an existing EMP.xml file. But, I received this exception: This is an unexpected token. The expected token is 'EndElement' Unlikely though, the code performs its function. When I check the file, I saw that the node I am trying to add was there, its just that the error keeps on prompting. Will anyone help me? Thanks in advance! ---------------------- Seeing the infinite...