Go to Post Bumper quality is an "attention to detail" measure. Teams that get little things right tend to do better on the big things. - vhcook [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-06-2005, 08:12
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Socket programming in VC++ 2005

I recently downloaded the VC++ 2005 Beta 2 from MS. I haden't worked with it before, so this morning I set out to create a simple network app to check if my server is up and accessible from the outside world. (And yes, I'll give it to a friend, where he'll set it up as a scheduled task.) I could have finished it by now in VS.NET 2003, but it appears that sockets are somewhat different in 2005. I'm unable to find the proper header/library to use. Winsock as a direct library doesn't appear to exist anymore and I couldn't seem to find a non-.NET way of doing it.

Do you know how to create a socket in 2005? All it has to do is check if it can connect to a certain server on port 80, if that makes a difference. (but if you happen to know how to use the .NET version, I might have to.)

I'm stubborn, so don't even suggest I just use 2003.
__________________

  #2   Spotlight this post!  
Unread 14-06-2005, 15:35
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: Socket programming in VC++ 2005

I haven't actually worked with it, but check this page out...
http://msdn2.microsoft.com/library/1...us,vs.80).aspx

BTW, if you didn't know this already, http://msdn2.microsoft.com is all of the documentation for VS2005...note that some parts are still incomplete, since it is still in beta...
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #3   Spotlight this post!  
Unread 14-06-2005, 15:47
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Socket programming in VC++ 2005

Quote:
Originally Posted by Nate Smith
I haven't actually worked with it, but check this page out...
http://msdn2.microsoft.com/library/1...us,vs.80).aspx

BTW, if you didn't know this already, http://msdn2.microsoft.com is all of the documentation for VS2005...note that some parts are still incomplete, since it is still in beta...
Yes, I did know that that was where the docs where, but I didn't find the first link. Thanks.

Now... how exactly do you include that in your C++ program? The System.[etc] syntax is used directly in C#, but in C++...?
__________________

  #4   Spotlight this post!  
Unread 15-06-2005, 20:03
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: Socket programming in VC++ 2005

This article covers simple network tasks with .NET 2.0, it uses all managed code though.
Closed Thread


Thread Tools
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
2005 Beantown Blitz Registration Notice Erin Rapacki Off-Season Events 9 30-04-2005 14:04
2005 St. Louis Regional Andrew Regional Competitions 6 14-03-2005 10:17
What should I put on my programming jump drive? IMDWalrus Programming 10 15-01-2005 13:37


All times are GMT -5. The time now is 00:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi