Good information...I'll check out the code later. My solution is to combine the client/server into one class, and allow switching on/off listen mode. Maybe it's not the best, but it's what I eventually came up with so far.
Well the serialize method appears to work, but only on smaller files.
When I try sending a file of about 100kb in size, I get an error "End of Stream encountered before parsing was completed" during the DeserializeData() on the line containing:
o = DirectCast(bf.Deserialize(mem), SendObject)...
I'm writing some code to transfer files using system.net.sockets methods. It works fine for sending one file or string in a byte array because I know exactly what to expect on the receiving end.
What I want to to do is include multiple elements in the byte array, like a string containing...
This is very simple to reproduce on my end.
Insert a WebBrowser control and set the URL to "youtube.com". Click on a video there and start watching it. You can use the controls on the video player only once, and then it will not work. For example, change the volume, then try changing the...
When you maximize a child within an MDI parent, it automatically creates a semi title bar with a control box and close button. I don't want this bar, how do I get rid of it? I have already set the parent and child forms to not have title bars, but this one still shows up.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.