C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 18th, 2003, 04:29 PM
ueberbill ueberbill is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Georgia
Posts: 20 ueberbill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to ueberbill
Windows XP and Sockets

I have some old client/server code from a networking class I took a while ago which just opens sockets and has the client connect to the server while both are running on the localhost. This works great on Linux, but I brought it over to my WindowsXP box and tried running it but the client never connects (although the server does appear to be listening on it's port). I'm behind a Linksys Router with NAT, but the address is local so it shouldn't matter (shouldn't it?). Is there something different I have to do for XP to get the sockets working? Is this different from what I need to do for other flavors of windows? Are there any code examples out there?


Thanks,
Bill

Reply With Quote
  #2  
Old June 18th, 2003, 05:18 PM
dwise1_aol's Avatar
dwise1_aol dwise1_aol is offline
Contributing User
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jan 2003
Location: USA
Posts: 3,836 dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)dwise1_aol User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 6 h 59 m 13 sec
Reputation Power: 446
Stupid question:
Did you convert the program over to using Winsock?

This PDF file, "Transitioning from UNIX to Windows Socket Programming" at http://cs.baylor.edu/~donahoo/pract...dowsSockets.pdf will show you how to do that conversion, plus how to create a console app with Visual C++.

BTW, in another recent thread, someone was having problems with XP not running a sockets program that runs on Win2k and NT. I suggested requesting Winsock v2.0, but we haven't gotten any feedback whether that fixed it or not.

Reply With Quote
  #3  
Old June 18th, 2003, 05:25 PM
ueberbill ueberbill is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Georgia
Posts: 20 ueberbill User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to ueberbill
full raw sockets in XP

Not a stupid question at all- that's where I'm confused. I thought the fact that Windows XP had full raw sockets meant that winsock was now not necessary- I think I inferred that from something I read on a webpage but now I will look at the pdf you mention.

Thanks,
Bill

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Windows XP and Sockets


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway