Hi,

Sorry this late reply.
Thank you for the code, will help a lot.


2009/1/15 Bernd Robertz <[email protected]>

> Hi,
>
> if you need a really simple example you should take a look at the
> tutorial I send, because it's the simplest I found on the web.
>
> I send you a link to My network class wich I used in My app.
> But be aware, it's just the send/rec/connect part. My messenger
> application was a bit more complex as the online tutorial, because I
> implemented a small protocol stack (based on XML) wich I wrote myself
> and the network class also don't contains the multiplexing function for
> multiple connections at a time.
> Also you should know, that the code is only the server part. The client
> part is basicly the same, exepct that the client use the Gtkmm I/O
> functions to "listen" for incoming messages.
> And lastly you should know, it was my first real project with Unix
> sockets. :-))
>
> If you need further help, feel free to contact Me.
> You can download My network code here:
>
> http://www.berndibub.de/network.cpp
>
> As I said, it contains NOT My protocol stack and the multiplexing
> function. Only connect, send and receive. Also the code is a bit dirty
> perhaps. :D
>
> Hope it helps.
>
> Bernd
>
>
> Am Mittwoch, den 14.01.2009, 16:40 -0200 schrieb Fabrício Godoy:
> > Hi,
> >
> > 2009/1/14 Bernd Robertz <[email protected]>
> >         Hello,
> >
> >         first, no, not really.
> >         Gtkmm is designed to work great with other libraries.
> >         Lastly I wrote a small MySQL database application in wicht
> >         Gtkmm works
> >         together with libmysql++.
> >         (Some maillist users will remember My selfmade problems with
> >         locales. :-)) )
> >
> >         Second, sure. I have it somewhere in My backups. Wich part do
> >         you want
> >         to know?
> > The basic, if possible, connect and sendmessage.
> >
> >
> >
> >
> >         Third, also yes. My the server application was only Linux. I
> >         wrote the
> >         client also on linux and after that I ported to windows.
> >         Except some
> >         small Window <-> Linux issues it was an easy task.
> >
> >         Fourth, again also yes. :-)
> >         If you start reading the documentation you will find out that
> >         is not
> >         only about Unix sockets and Windows WinSock, also it covers
> >         some basic
> >         sockets about Solaris OS.
> >
> >         Hope it helps.
> >
> >         Bernd
> > Thanks again.
> >
> >
> >
> >
> >         Am Mittwoch, den 14.01.2009, 16:04 -0200 schrieb Fabrício
> >         Godoy:
> >
> >         >
> >         >
> >         > 2009/1/14 Bernd Robertz <[email protected]>
> >         >         Hello,
> >         >
> >         >         Boost is quite useful for this.
> >         >         But as far as I know, there are some complications
> >         about
> >         >         Boost::string
> >         >         and Glib::ustring and some other library related
> >         parts.
> >         > Will be paintful to develop gtkmm application using Boost?
> >         >
> >         >
> >         >
> >         >         About 3 years ago I wrote a simple client-server
> >         based
> >         >         messenger in with
> >         >         Gtkmm and an own implemented protcol.
> >         > You  have the source code yet?
> >         >
> >         >
> >         >
> >         >
> >         >         For this I just used the basic C network stack wich
> >         I used
> >         >         with the
> >         >         Gtkmm I/O functions on the client side and a simple
> >         console
> >         >         interface
> >         >         with C++ STL on server side.
> >         >         The server used the simple multiplex function
> >         "select" for
> >         >         example.
> >         > Is it cross platform?
> >         >
> >         >
> >         >
> >         >         The following link covers some basics about the C
> >         network
> >         >         functions wich
> >         >         I used in My app.
> >         >
> >         >
> >         http://beej.us/guide/bgnet/output/html/multipage/index.html
> >         > Is it cross platform?
> >         >
> >         >
> >         >
> >         >         As I started in the basics of network programming,
> >         the link
> >         >         above helped
> >         >         Me alot.
> >         >
> >         >         But I'm pretty sure there are some powerful
> >         libraries out
> >         >         there like
> >         >         Boost. But I like it small and simple. As it is used
> >         to say:
> >         >         "Back to
> >         >         the roots." :-))
> >         >
> >         >         Any other opinion about My thoughts are naturaly
> >         welcome.
> >         >
> >         >         Best regards
> >         >
> >         >         Bernd
> >         > Thank you.
> >         >
> >         >
> >         >
> >         >
> >         >         Am Mittwoch, den 14.01.2009, 15:30 -0200 schrieb
> >         Fabrício
> >         >         Godoy:
> >         >
> >         >         > Hi,
> >         >         >
> >         >         > I want to develop a client server application over
> >         TCP and
> >         >         it must be
> >         >         > cross platform.
> >         >         > I found Boost library, is a good choice?
> >         >         > What's library is normally used?
> >         >         >
> >         >         > Thank you.
> >         >
> >         >         > _______________________________________________
> >         >         > gtkmm-list mailing list
> >         >         > [email protected]
> >         >         > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> >         >
> >         >
> >
> >
> >
>
>
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to