Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Moderator
    Join Date
    Nov 2001
    Location
    Oulu, Finland
    Posts
    3,271

    Good, free, open-source, thread-safe, cross-platform, c++ network programming lib?

    Well are there any?



    • Advertising

      advertising
      EmuTalk.net
      has no influence
      on the ads that
      are displayed
        
       

  2. #2
    Moderator Hacktarux's Avatar
    Join Date
    Nov 2001
    Location
    France
    Posts
    1,174
    I have no idea what you're trying to do and i know it's not c++ but..... do u have considered using java ? This language is really great to build little cross-platform network tools...

    Otherwise, i don't know if there are any generic c++ libs... but depending on what you're trying to do maybe you can find a specilized lib.

    Do u have looked at QT ? it's not very convenient imo but it contains network stuffs.

    SDL is another possibility.
    Last edited by Hacktarux; September 17th, 2004 at 14:57.

  3. #3
    Moderator Cyberman's Avatar
    Join Date
    Nov 2001
    Posts
    1,824
    Quote Originally Posted by Slougi
    Well are there any?
    Slougi... what TYPE of networking? Are you refering to TCP/IP IPV4 or IPV6?
    Are you refering to support for services such as HTTP FTP (TCP UDP passive mode transfer?) SNMP NNTP raw TCP connection?

    As a friend once said 'If you haven't qualified and quantified it. Then you don't know what you are getting into'

    Also about thread safe, not all platforms support threading. Just to warn you.

    This reminds me I need to work on my NNTP support for something (DOH!)

    Cyb
    Last edited by Cyberman; September 17th, 2004 at 15:18.
    Progress (n.):
    The process through which the Internet has evolved from smart people in front of dumb terminals to dumb people in front of smart terminals.
    -------------------------------------------------------------------
    Recursive (adj):
    see Recursive

  4. #4
    EmuTalk Member zenogais's Avatar
    Join Date
    Jun 2004
    Location
    California
    Posts
    215
    Here's a few I picked up just by googling your qualifiers:

    OpenTNL
    HawkNL
    SDL_Net

    BTW I have yet to see an open-source project that isn't also free

  5. #5
    Moderator
    Join Date
    Nov 2001
    Location
    Oulu, Finland
    Posts
    3,271
    Quote Originally Posted by Cyberman
    Slougi... what TYPE of networking? Are you refering to TCP/IP IPV4 or IPV6?
    Are you refering to support for services such as HTTP FTP (TCP UDP passive mode transfer?) SNMP NNTP raw TCP connection?
    Darn I knew I forgot something!

    Specifically TCP/IP IPV4, I don't need socket level stuff; basically what I want is "Listen on port 5678 and give me a way of writing and reading from there ktnx." I don't want to worry about socket(), bind(), connect(), listen(), accept(), select(), struct sockaddr. Or about winsock. It would be cool if it abstracted all that with nice exception handling.

    As for threads, yes I know they are not available everywhere.

    As for portability, I actually just realized that it really only needs to run on *nix, Linux and the BSDs would be cool.

    As you might have noticed I am not too good with network stuff Basically I think it's the most boring aspect of computing in general, and whenever I go to learn how to really do any network stuff I find myself doing something different altogether.

    Hack: Java is not really an option I'm afraid; nor QT. Actually SDL is not either

    zenogais: I'd googled already but not really found anything... HawkNL looks cool, I think I'm gonna go for that. It's C, not C++, but that's ok. Thanks!

    P.S. open-source software doesn't have to be free in the gnu sense; look it up

  6. #6
    ????????????????????????? Doomulation's Avatar
    Join Date
    Nov 2001
    Location
    ????????????????
    Posts
    8,780
    Basically as I remember when doing a network proggie, it's veyy easy... first you get the ip of the target computer. Set the target computer to listen for incoming connections. Connect to the computer. Target computer should accept the incoming call. Now you're all set to send stuff across the network...

    This was the prodecure with MFC, though I hope it isn't that much more complicated without MFC and a non-window OS. Good luck
    Atashi wa juu-yon-sai no onna no ko! Atashi no namae wa Miizuki. Yurushiku ne!
    Nani? Atashi o shinjirimasen desu ka? Baka!
    "You're all doomed! Doomed, I say! Hehe... are we approaching the end of the world?"

    shikata ga kaite aru - "the instructions are written above"
    Need to download GoodN64 or instructions to use it? Need to check if it's a good or bad rom?
    Download: Glide64 | Hacktarux's wrapper

  7. #7
    Moderator Hacktarux's Avatar
    Join Date
    Nov 2001
    Location
    France
    Posts
    1,174
    Slougi, actually, if you only have to do simple stuffs like that, maybe you don't need any lib, here's the way i use sockets for simple things : copy the exemple given in the info page of the libc, and fill it with your code, it'll work, you don't even have to try understanding how the socket works

  8. #8
    Moderator
    Join Date
    Nov 2001
    Location
    Oulu, Finland
    Posts
    3,271
    Look people I know how it all works - I even got Stephen's book on unix network programming
    The problem was originally that I didn't want to add a few zillion #ifdefs for winsock; especially considering that I have no idea how winsock differs from berkeley sockets.

  9. #9
    EmuTalk Member zenogais's Avatar
    Join Date
    Jun 2004
    Location
    California
    Posts
    215
    Slougi:
    I was just stating a fact, never said that GNUed projects can't be free.

    Anyway in general I would say Windows, specifically Winsock, really makes sockets more difficult than they have to be. I find the Berkley sockets library to be much more usable than winsock. Anyway, good luck Slougi, is this an up and coming project by any chance, or just something private?

  10. #10
    Moderator Cyberman's Avatar
    Join Date
    Nov 2001
    Posts
    1,824
    Quote Originally Posted by Slougi
    Look people I know how it all works - I even got Stephen's book on unix network programming
    The problem was originally that I didn't want to add a few zillion #ifdefs for winsock; especially considering that I have no idea how winsock differs from berkeley sockets.
    Well.. Slougi under *nix if I remember correctly you don't even need to write a program for this. You just need to tell the OS what the daemon service is and what program to call to handle it. Now at THAT point you might need to use a program. It could be a script that merely adds to a counter though. You might need to specify UDP or TCP though for the method to OS.
    Under unix you can't just run a program to monitor a port, you have to configure the system to allow that

    Cyb
    Progress (n.):
    The process through which the Internet has evolved from smart people in front of dumb terminals to dumb people in front of smart terminals.
    -------------------------------------------------------------------
    Recursive (adj):
    see Recursive

Page 1 of 2 12 LastLast

Similar Threads

  1. UltraHLE 2002 Reborn?
    By aprentice in forum UltraHLE 2064
    Replies: 69
    Last Post: July 26th, 2002, 15:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •