Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 120 results for
deserialization
- Page 1
problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
… code in which the error i'm getting is: on
deserialization
- but when i checked the byte[] length after serialization that…
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
HERE IS THE
DESERIALIZATION
CODE... [code] public static object DeSerializer(byte[] theByteArray, int length) { …
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
… = (M7_1.MessageWrapper_Download)M7_1.class_ser_deser.DeSerializer(recByte, count-1); [/code] ... where
deserialization
takes the length of the array as [code] public static…
Problem with understanding deserialization code
Programming
Software Development
13 Years Ago
by prathoven
I have a problem with understanding a
deserialization
code....Can anyone help with this one: public clsSerial DeserializeFriend() //[…
deserialization in jsp
Programming
Web Development
12 Years Ago
by bhallarahul
[CODE]<jsp:usebean id="a" beanName="xyz">[/CODE] how to use above syntax in jsp to deserialize data while jsp page running on tomcat
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
this is the server code part... [code] //*****************************TCP NETWRK STREAM ***** serverThread = new Thread(new ThreadStart(startListen)); serverThread.Start(); //**************************************************** } catch (SocketException se)…
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
i have used the available message_wrapper class, i've spent days on this problem, and i'm unable to figure out what is causing the problem... why is the msg size different at write() method, and at the client side, why is it smaller in size at line byteCount = (myclient.GetStream()).EndRead(ar);????
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by sknake
Line 44 in your first post -- Shouldn't that be [icode]> 0[/icode]? Upload a sample project and i'll take a look at it.
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
thank you sknake.. i got it..the # # n = (NetworkStream)ar.AsyncState; shouldn't be there.. and yes must be >0... overlooked it!! :S :)
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
o no, the data received is always fixed size 1480, and is lesser than the data i'm sending from the server..?? whereas i've initialized the bigin receive to be 8192 in byte size.... :(
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
it ran fine just once in 5 times try...
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by sknake
[B]>>o no, the data received is always fixed size 1480, and is lesser than the data i'm sending from the server[/B] Upload a sample project. You have something called MTU, MRU, and MSS when dealing with network connections. MTU is typically 1500 or less. Larger values are referred to as jumbo frames. You cant rely on any single packet …
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h612
but i'm gettign the exception the stream is not ...valid bf.. the starting contents are...57-34 etc...
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by sknake
Go ahead and upload a sample project demonstrating the problem
Re: problem in deserialization.. different bytes length received over the tcp client
Programming
Software Development
13 Years Ago
by h_Nick1981
Nice example, however, nowadays, there is no need to really re-invent the wheel, you can use .Net Protocol Builder to generate the code for your packets listener and client/server connections ... this tool can generate thousands of lines and packets in seconds ... with threaded listener and non-blocking modes .... see [URL="http://www.protocol…
Re: Problem with understanding deserialization code
Programming
Software Development
13 Years Ago
by Momerath
The first [b]clsSerial[/b] is telling you what type of object is going to be returned by this method. The second [b]clsSerial[/b] is [URL="http://msdn.microsoft.com/en-us/library/ms173105%28VS.80%29.aspx"]casting[/URL] the value returned by [URL="http://msdn.microsoft.com/en-us/library/b85344hz.aspx"]format.Deserialize()[/URL] …
Re: Problem with understanding deserialization code
Programming
Software Development
13 Years Ago
by prathoven
Thanx for your help momerath..
Simple .NET Remoting Demonstration - Part II - Broadcasting
Programming
Software Development
14 Years Ago
by DdoubleD
… BinaryServerFormatterSinkProvider(); serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full; //full
deserialization
level BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider(); // Properties of the server channel…
url signer and creation of short-urls using Jquery, JSON, Ruby, RAILS
Programming
Web Development
10 Years Ago
by zack000smith
… the Jquery-ui gem for rails). JSON : for Serialization and
Deserialization
of Ruby objects --I would use an array of hashes… use JSON.generate(links) for serialization and JSON.parse() for
deserialization
. I would loop through the array (get the original object…
c# client-server class cast error.
Programming
Software Development
10 Years Ago
by alex.dimofte.5
… server side and deserialize on client side. The serialization and
deserialization
are as follows : // server side serialization. Student s1 = … = new BinaryFormatter(); binaryFormatter.Serialize(writer.BaseStream, s1); // client side
deserialization
. 1.BinaryFormatter bin = new BinaryFormatter(); 2.Student s1 = (Student)…
Re: Serialization of Static Field
Programming
Software Development
15 Years Ago
by verruckt24
… were initialized through diffrent constructors, in that case your serialization/
deserialization
would always depend on the last instance created. Would this… variable instead of a static variable and have the serialization/
deserialization
behaviour depend on that.
Re: c# client-server class cast error.
Programming
Software Development
10 Years Ago
by alex.dimofte.5
As Momerath suggested i created two methods in my Student class for serialization and
deserialization
and an assembly for my Student calss. Works good now. Thank you!
persisting the session
Programming
Software Development
17 Years Ago
by ronpar123
….html[/COLOR][/URL]) [COLOR=dimgray]Also for some objects where
deserialization
is possible only the object reference is returned, though the…
Serialization of Static Field
Programming
Software Development
15 Years Ago
by andrepezzo
… problem is the following : I have to perform different serialization/
deserialization
actions according to the constructor..so to the static field…
Re: Serialization of Static Field
Programming
Software Development
15 Years Ago
by stephen84s
However ~s.o.s~ if I am not wrong, every serializable class needs a [B]static[/B] final long "serialVersionUID" field, which is used during
deserialization
(else the compiler throws (just) a warning), for checking if the class in memory and the serialized object match. So I guess it must be an exception, to the normal rule.
Xml Serialization
Programming
Web Development
15 Years Ago
by naorye
… have the ValueId member and casting throws an exception). The
deserialization
creates CustomFieldData objects and not what I really need. Where…
Program Help
Programming
Software Development
14 Years Ago
by PysKo
… so if i can get help on the serialization and
deserialization
i would be very greatful
Xubuntu C distributed application
Programming
Software Development
14 Years Ago
by Nogat21
… a structure through a socket, but the values after "
deserialization
" (the use of htonl-ntohl) come adulterated and i…
Changing 2 Methods in Class to their own class
Programming
Software Development
13 Years Ago
by gymangel812
… trying to create a class that provides object serialization and
deserialization
methods for use by another class. These two methods (I…
Consuming Json from Google Reader
Programming
Software Development
13 Years Ago
by denizen08
…, particularly the subscription listing. I started out creating classes for
deserialization
but I don't have a full grasp of the…
1
2
3
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC