Breaking Sec

Full Version: Shockwave's Super-Easy Guide to Winsock with C!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
CHECK ATTACHMENTS FOR .PDF FORMAT (MUCH PRETTIER!)

Kso, as above, this is a preview of it so you know what you'll be reading. I go really in-depth into sockets and the like.

Code:
Before we delve into any sort of code, we need to make sure you
understand the concept of “networking.” What is a socket? What is a
port? It’s okay if you don’t know the answer to these questions yet
as I shall explain them.
Okay, so, what is a port? Consider a wall socket for a moment.
Each “plug in” is a port. Only one thing can be using said “port” at
a time correct? This is also true of a computer.
If you try to bind a socket and listen on a port that’s already
in use, you will get Winsock error 10048, “WSAEADDRINUSE.” The direct
definition of this error is: “Only one usage of each address is
normally permitted.” In other words, you’re attempting to use a port
already used by something else.
So now that we know we can’t use the same port twice, let’s get
to what uses a port. Sockets. Consider our wall socket analogy again.
Sure, those “plug ins” are great and all, but they’re pretty much
useless without something to make use of them. So what do you use? A
“plug” (socket!)
Thanks for sharing shockwave
Hopefully you stick around this time shock.
Very nice Icon_surprised
I remember reading over this a couple times whilst you were still writing it. Glad to see it finally published =D
(08-26-2010 01:25 AM)Machiavelli Wrote: [ -> ]Very nice Icon_surprised
I remember reading over this a couple times whilst you were still writing it. Glad to see it finally published =D
Ikr? Icon_surprised
And no problem next. :D
I had a problem with the 6th line of code.

Code:
C:\Users\Family\Desktop\project.c||In function `main':|
C:\Users\Family\Desktop\project.c|6|error: `winSockData' undeclared (first use in this function)|
C:\Users\Family\Desktop\project.c|6|error: (Each undeclared identifier is reported only once|
C:\Users\Family\Desktop\project.c|6|error: for each function it appears in.)|
||=== Build finished: 3 errors, 0 warnings ===|
(08-26-2010 08:48 AM)Michael Hedges Wrote: [ -> ]I had a problem with the 6th line of code.

Code:
C:\Users\Family\Desktop\project.c||In function `main':|
C:\Users\Family\Desktop\project.c|6|error: `winSockData' undeclared (first use in this function)|
C:\Users\Family\Desktop\project.c|6|error: (Each undeclared identifier is reported only once|
C:\Users\Family\Desktop\project.c|6|error: for each function it appears in.)|
||=== Build finished: 3 errors, 0 warnings ===|
You linked ws2_32.lib right?
Yes, I'll double check though

EDIT: Team Viewer? I'm not going to give access, just show my desktop
Michael I'm willing to help you if you want.
(08-26-2010 09:24 AM)Michael Hedges Wrote: [ -> ]Yes, I'll double check though

EDIT: Team Viewer? I'm not going to give access, just show my desktop
PM me infos. Or msn : shockwave@fbi.gov
Pages: 1 2
Reference URL's