Jump to content

Sending packets with C

- - - - -

  • Please log in to reply
9 replies to this topic

#1
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
I gotta send/receive packets with C, over my LAN network. Any way to do it?
I heard something about winsock.h, how do I install and use it?

Yours, Mike.

#2
artificial

artificial

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 624 posts
Every C/C++-compiler for Windows should have "winsock.h" in its include-folder.
Look at this brief tutorial or google for some more detailed ones: Link

Greets,
artificial
Sometimes words ain't enough to express something. That's why computer scientists use double words.

#3
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Mine doesn't. That's weird... It only proves me once again that I should stop using TurboC, the only reason I use it is that I need graphics.h to do homework.
My second favorite compiler, Tiny C Compiler, doesn't have such a header file too. Are you sure about it?

#4
artificial

artificial

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 624 posts
Use GCC (there's a Windows-version called MinGW).
I recommend Code::Blocks or wxDev-C++. Those two IDE's a pretty good and use MinGW.
Sometimes words ain't enough to express something. That's why computer scientists use double words.

#5
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Good thanks. Does wxDev-C++ use ANSII C++?

#6
artificial

artificial

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 624 posts
wxDev-C++ ist just an IDE. The compiler is called MinGW and it sticks to C/C++ standards. ;)
Sometimes words ain't enough to express something. That's why computer scientists use double words.

#7
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Oh lol... Then I'll just get that MinGW thingy and stick with notepad.

#8
artificial

artificial

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 624 posts
Follow this link and click on "wxDev-C++ 7.3.1 Full Installer". It's the full package (including IDE and MinGW).
Sometimes words ain't enough to express something. That's why computer scientists use double words.

#9
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Thanks for everything... You did help me a lot. I'm correctly downloading it.

Posted Image
There is no problem that cannot be solved by the use of high explosives.


#10
artificial

artificial

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 624 posts

AdvMutant said:

Thanks for everything...

You're welcome. :)
Sometimes words ain't enough to express something. That's why computer scientists use double words.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users