IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.67 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-17
[17:10]<rwyfcygs>You can't pay eye candy to take you upstairs and ... dance for you?
[17:25]<awjzdd>sup smellyhippy
[17:25]<rrsrn>du
[17:25]<rrsrn>fu even
[17:25]<rrsrn>:d
[17:29]<sdnffdxdlld>lo wormy :)
[17:34]<rwyfcygs>Wow, I just found a two-word .com domain that's not registered
[17:34]<rwyfcygs>It's even quite a good one
[17:38]<-- 2yd2nzy xrs fuyv>http://iownmymusic.org/ http://iownmydvds.org/ .")
[17:40]<rwyfcygs>FULL OUTER JOIN is evil
[17:40]<anpys>How to send object, using Sockets ?
[17:41]<anpys>is it possible?
[17:41]<mjzymygo>jefis: serialize it... send the data... get otherside to unserialise it
[17:41]<mjzymygo>(if you wanna copy it)
[17:41]<zyccus>"Protect your digital purchase with EXTENDED DOWNLOAD SERVICE (+$5.99) - We'll keep a copy of your digital purchase should you ever need to re-download it again for any reason"
[17:41]<anpys>how to serialize it?
[17:41]<zyccus>sick
[17:42]<rwyfcygs>BAstard
[17:42]<mjzymygo>jefis: look into how .NET does it
[17:42]<zyccus>SpikeLite msdn iserializable
[17:42]<slycnlyvn>rikkus, ISerializable Interface (System.Runtime.Serialization): http://msdn2.microsoft.com/en-us/library/system.runtime.serialization.iserializable.aspx
[17:42]<zyccus>jefis: ^^^
[17:42]<rwyfcygs>$6 just to use tiny amounts of extra bandwidth...
[17:43]<rwyfcygs>Anyway, I'm sure the insurance companies have that patented.
[17:43]<rwyfcygs>The lawyers will come to get them soon.
[17:43]<zyccus>awilkins: it's acronis - the people who make 'true image' - drive imaging software
[17:44]<anpys>is there anyother way to send object via sockets?
[17:44]<mjzymygo>jefis: serialize it... send the data... get otherside to unserialise it
[17:44]<mjzymygo>jefis: or.... um... no
[17:45]<rwyfcygs>Or a Proxy that remotes the original on its host machine
[17:45]<mjzymygo>awilkins: yes, but thats not technically sending the object is it?
[17:45]<rwyfcygs>No
[17:45]<rwyfcygs>But neither is just cloning it
[17:45]<mjzymygo>true ;)
[17:45]<mjzymygo>but it's closer to it
[17:46]<mjzymygo>it's a bit like matter transporter shit... am I really sending me? or is a copy of me gonna turn up the other side.
[17:46]<rwyfcygs>Depends whether you want to store the state
[17:46]<rwyfcygs>Or just want to look at it
[17:46]<rwyfcygs>(ok, you can send the changed state back)
[17:47]<rwyfcygs>Yeah, it's an issue in uploading of consciousness as well
[17:47]<mjzymygo>awilkins: exactly...
[17:48]<mjzymygo>jefis: you could always look at Remoting... but i'd be careful with that... Windows Communication Foundation won't support it fully in the future (see .NET 3.0)
[17:48]<rrjufmyffrys>jefis, you probably won't need to implement the ISerializable interface unless you want finer control over how your object is serialized... you can just mark your class with the [Serializable] attribute
[17:48]<lcs>.net 3.0 is comming out?
[17:48]<rwyfcygs>My prefered get-around is the gradual "upgrading" of my brain substrate until all functional parts are non-biological
[17:48]<mjzymygo>pks.... it's just .NET 2 really... just M$ marketing gone mad
[17:49]<lcs>Moridin8: thought so, they probably want to catch up with sun and java 5 :)
[17:49]<mjzymygo>awilkins: yeh... but if we continue we're gonna get into pseudo-philophy and my brain cells are currently dedicated to fullOuterJoin madness
[17:50]<mjzymygo>pks: I do not doubt it... although JEE5 is disapointing a lot of people I work with on occasion.
[17:50]<rwyfcygs>Moridin8: Probably the same level of mad Kevin-Baconeque network connection involved
[17:50]<lcs>Moridin8: the same as .net for the rest of them
[17:50]<lcs>Moridin8: :)
[17:51]<mjzymygo>pks: I just mean they are telling me that they expected more from sun is all.
[17:51]<lcs>;)
[17:52]<anpys>yuhu, just wrote server/client communicating via sockets, is there a simplier way, to send strings,
[17:52]<anpys>my way: convert to char[], char convert to byte[], and send :)
[17:52]<mjzymygo>^^^ sounds good
[17:52]<mjzymygo>but make sure both sides agree on encoding
[17:53]<anpys>encoding?
[17:53]<lcs>yea, char is not one byte
[17:53]<mjzymygo>UTF8/Ascii... also which language... (Culture)
[17:53]<lcs>*depending on the encoding*
[17:53]<anpys>byte from 0 to 255
[17:53]<mjzymygo>char = 0 to 65535
[17:53]<sdnffdxdlld>Moridin8: found the issue in pm
[17:53]<zyccus>that's pretty simple
[17:53]<anpys>chars can be from 0 to 255
[17:53]<mjzymygo>char = 0 to 65535
[17:54]<mjzymygo>^^^ .NET
[17:54]<anpys>65535 ?
[17:54]<lcs>jefis: not in c#, here everything is in unice by default
[17:54]<rrjufmyffrys>jefis, thats ASCII encoding
[17:54]<lcs>unicode*
[17:54]<mjzymygo>jefis: 2^16-1 (or unicode)
[17:54]<zyccus>RaoulMillais: well, it's 8-bit chars, not necessarily any encoding in particular
[17:54]<anpys>anyway, server gets byte, and Console.Write((char)buffer[i]); :-))
[17:54]<rrjufmyffrys>rikkus, thats true... but its extremely likely he means ASCII
[17:55]<anpys>rikkus: if you show me smallest example how to serialize object, i would do :)
[17:55]<anpys>i hate microsoft example, so big, so hard to understand
[17:56]<zyccus>jefis: add [Serializable] attribute to your class
[17:56]<anpys>ok
[17:56]<mjzymygo>just be careful with that attribute though... read up on the consequences of it
[17:57]<zyccus>jefis: use BinaryFormatter.Serialize() to send your object down your stream
[17:57]<zyccus>yes, that's the simplest example ... but you may need to change the way your stuff is serialized
[17:57]<sdnffdxdlld>ahhh if only serialization was that simple
[17:57]<zyccus>for simple classes, it is
[17:58]<anpys>Serialize(System.IO.Stream, object) <- System.IO.Stream ? for what purposes?
[17:58]<vufvuzn>(re: encodings - actually ASCII's a 7 bit encoding, so that'd be 0-127)
[17:59]<zyccus>well, that would be your TCPStream
[17:59]<anpys>you mean socket?
[17:59]<vufvuzn>jefis: to write the object to..
[17:59]<zyccus>which is using your Socket
[18:02]<zyccus>oh
[18:02]<anpys>Socket server = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
[18:02]<zyccus>NetworkStream stream = new NetworkStream(server);
[18:02]<sdnffdxdlld>that would create a socket not a TcpCLient
[18:02]<sdnffdxdlld>and its a new one, not existing
[18:02]<anpys>why i need TcpClient?
[18:02]<zyccus>BinaryFormatter formatter = new BinaryFormatter();
[18:03]<mjzymygo>smellyhippy: what was the ISBN of that berkley sockets in c# book?







