There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot bsod computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
C++ Sockets


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Regicide's Avatar
Senior Member with 302 posts.
 
Join Date: Aug 2003
Experience: Advanced
21-May-2004, 03:19 PM #1
C++ Sockets
I'm looking to make a program that will work on a few different OS (Most likely Solaris, FreeBSD, Windows, and Linux). I want to make a program that uses sockets. I would like this program to be one universal terminal C or C++ program for those OS, meaning I don't want to make different versions for each OS. I know how to program with Winsock and sockets in general in Linux. From this I realize that Winsock and other sockets on other OS are very different. Is there a book or anything that teaches how to make a socket libary that is compatibile for alot of OSs? Or is there a socket libary available already that will let me do this?
__________________
When you give everything and the feeling is gone
All the giving is fake, did you fake enough?
When you take everything and you stay too long
When there's nothing left, did you take enough?
coderitr's Avatar
Distinguished Member with 3,080 posts.
 
Join Date: Oct 2003
21-May-2004, 10:39 PM #2
If you want the program to run on multiple platforms, consider java. Otherwise you're going to have to code compile-specific preprocessors into your code which, in my opinion, obfuscates code to the point that it becomes unmaintainable. From what little I know of java you can take the same executable and run it on any OS that has java runtime libraries installed. I could be totally off base on that -- someone more experienced with java would have to provide the clarification on that. Winsock implies Windows. You're not going to find any winsock specific functionality on Linux or Solaris of FreeBSD. However, these OS's should have socket support built into them since the idea of sockets originated with Unix anyway (just another idea pirated by Gates.) Amazon.com has a book called "TCP/IP Sockets In Java: Practical Guide for Programmers." I have no idea what this book contains or how useful it may be to you.

Good luck.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:41 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.