Cross platform sockets

This is a discussion on Cross platform sockets within the Networking/Device Communication forums, part of the General Programming Boards category; Hello, What's the best way to do *simple* cross-platform TCP sockets (Winsock and BSD sockets natively), Are there any small ...

  1. #1
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459

    Cross platform sockets

    Hello,

    What's the best way to do *simple* cross-platform TCP sockets (Winsock and BSD sockets natively), Are there any small C libraries that provide this? Or would it be best to write my own wrapper (around BSD sockets and Winsock)?

    I've searched, but most of the libraries either don't wrap the native API, are C++, or are "over complex" for my desired use.

    Thanks.

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Best way? Use Java.

    Sorry, I don't know of any cross platform socket libraries off hand. If you do find something intuitive written in C, I'd be interested in knowing.

    If you write your own library, code name it Darcy or Deathray.

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    I suggest the Apache Portable Runtime.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Registered User kroiz's Avatar
    Join Date
    Jun 2007
    Posts
    116
    I am not sure but I think QT might have sockets.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Qt is C++
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Haha Darcy , I've decided to go with APR or write a wrapper for Winsock / BSD socks, thanks all

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cross platform XML library
    By Josh Kasten in forum C++ Programming
    Replies: 2
    Last Post: 04-09-2007, 04:04 PM
  2. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  3. Cross Platform Socket Programming?
    By CrazyNorman in forum Networking/Device Communication
    Replies: 8
    Last Post: 07-19-2005, 02:38 AM
  4. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  5. cross platform game programming
    By xddxogm3 in forum Game Programming
    Replies: 13
    Last Post: 08-22-2004, 09:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21