On Mon, 2003-03-31 at 08:13, Rowel Atienza wrote: > Dean Michael Berris said: > > > socket programming is too OS specific and too much a burden for an > > application to incorporate into it consciously. > > > > How do you do your socket programming? If you program in Java, same piece > of code will run on both windows and nix. If you program in C++, use Qt > lib and same piece of code will run on both windows and nix. The same > thing with perl. If you program at a higher level (not the > initialize,bind,accept and connect type), you'll find socket programming > like abc and very easy to incoporate in your application. >
i could do socket programming in a standard way if i was creating a custom or specific client/server application. what i meant is, sometimes the application that you develop (or you the developer) should care less about socket programming with regards to storing|retrieving persistent information. like, if you were dealing with files, you shouldn't be concerned whether the file is located in the local machine or somewhere else -- the OS handles that for you. and if you wanted to get the square root of a number, you shouldn't be concerned if the machine architecture is little or big endian -- the libs should handle that (theoretically) for you. what i want to offer is something like : xmlgos_connect(host, user, password); ... xmlgos_send(object, DTD_TYPE, blocking|non-blocking, persistence_level); ... xmlgos_recv(object*, DTD_TYPE*, blocking|non-blocking); ... xmlgos_disconnect(); which should be the long and short of it. there could be other methods i will want to offer, but i am still in the alpha stages. =) > If you are just transferring small chunks of raw ASCII data, socket > programming plus simple locking mechanism of your data is the way. > However, if you are sharing objects in some predefined format, XML may be > the way but I will still opt for a central database. If you want to > provide real abstraction to the max, use JavaSpaces/Jini. > it should act like a central database, and my aim is just that -- to share objects in some predefined format. =) -- -=[mikhail]=- aka Dean Michael C. Berris mobile +63 917 8901959 work +63 49 5680024 http://free.net.ph/Members/mikhailberis pgp key ID = 0xF9501761 _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
