C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 02-13-2005, 09:47 AM   #1
former member
 
Brain Cell's Avatar
 
Join Date: Feb 2004
Posts: 472
Question Winsock - Where do i start?

Before you post links to Johnnie's Winsock tutorial or any other similar tutorial , let me tell you what i want ...

I'm looking for a tutorial that , unlike Johinnie's , assume that you know NOTHING but standard C\C++. I need a tutorial that explain every type and structure IN DETAIL aswell as other types\structures i could use.

I want a tutorial that shows Winsock function prototypes and explain their parameters, what we should send to those function and why. And why should we use WinMain instead of main...etc

Am i asking too much? I found few tutorials on Winsock but they all assume that you already know what they're talking about without even stating their assumptions.

I have a background in TCP/IP and sockets btw , thats not the problem. The problem is Winsock programming itself.



any help is much appreciated
__________________
My Tutorials :
- Bad programming practices in : C
- C\C++ Tips
(constrcutive criticism is very welcome)


- Brain Cell
Brain Cell is offline   Reply With Quote
Old 02-13-2005, 10:20 AM   #2
Registered User
 
Join Date: Nov 2004
Location: Slovenia, Europe
Posts: 115
http://www.hal-pc.org/~johnnie2/winsock.html
__________________
[C++]
IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
2nd compiler: g++ (GCC 3.4.3/4.0.0)
3rd compiler: Borland 5.5
[C#]
IDE: Microsoft Visual C# Express 2005
2nd IDE: SharpDevelop
2nd compiler: csc in Command Prompt
.NET Framework: 2.0
[php]
Core: 5.1.0 beta 3
IDE: PHPEdit
2nd IDE: Notepad
Favourite extensions: exif,gd2,mysql
Favourite PEAR packages: DB, XML_RSS, ID3
Favourite databases: SQLite, MySQL
publikum is offline   Reply With Quote
Old 02-13-2005, 10:30 AM   #3
return 0;
 
Join Date: Jan 2005
Location: Netherlands
Posts: 89
Quote:
Originally Posted by Brain Cell
And why should we use WinMain instead of main...
It's not necessary, it's your choice wether you create a win32 api (WinMain) or a normal console program (main).

Here is a good tutorial for networking. Just keep this in mind when using winsock:

Quote:
ignore pretty much all of the system header files I mention in here. All you need to include is:

#include <winsock.h>
Snip is offline   Reply With Quote
Old 02-13-2005, 10:45 AM   #4
It's full of stars
 
adrianxw's Avatar
 
Join Date: Aug 2001
Posts: 4,833
I usually suggest starting here.
__________________
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
adrianxw is offline   Reply With Quote
Old 02-14-2005, 09:37 AM   #5
former member
 
Brain Cell's Avatar
 
Join Date: Feb 2004
Posts: 472
Snip : I tried to follow that tutorial before but i had a bit of a hard time. But i'll try again if i don't find any other good tutorial, thanks.

adrianxw : Thanks for the link. Last update for that tutorial was 1999 , don't you think there might outdated info? I didn't read it yet but hopefully it explains things in detail

publikum : Are you trying to prove that you're stupid? you could've simply said "hey everyone i'm stupid" and save the time you spent on searching for Johnnies tutorial
__________________
My Tutorials :
- Bad programming practices in : C
- C\C++ Tips
(constrcutive criticism is very welcome)


- Brain Cell
Brain Cell is offline   Reply With Quote
Old 02-14-2005, 01:39 PM   #6
I am me, who else?
 
Join Date: Oct 2002
Posts: 250
I think the link adrianxw sent was fairly good, a few things that I can see are out of date, but almost everything you see there seems to be right. Of course I am no expert, but looking at that was a bit easier than reading some of the other tutorials, but hey its all in how you learn. Check out adrian's first then go on to the others and they should progressively make sense
dpro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ gui for windows where to start prixone Windows Programming 2 12-16-2006 11:48 PM
GNOME Desktop won't start (Mandriva) psychopath Tech Board 10 07-19-2006 01:21 PM
WHEN to start game programming mrcheesypants Game Programming 18 02-02-2006 04:09 PM
Need help from experts to start game programming cader Game Programming 8 11-29-2005 12:48 PM
start another program lshome C Programming 3 06-24-2002 01:48 PM


All times are GMT -6. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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