News:

So the widespread use of emojis these days kinda makes forum smileys pointless, yeah?

Main Menu

[C++] Beginning socket use

Started by Joe, October 11, 2005, 07:00:11 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Joe

Yeah. Anyone know any good tutorials?

g++, linux 2.6
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


drka

if you're on windows, MFC

if not, then i dunno. if you have winsock.h or winsock2.h with it, then i think you can. but then again i dont have Linux cause i dont know how to clear a hard drive.

MyndFyre

wxWidgets provides an open-source, cross-platform library that includes socket support.  The base class is wxSocketBase which has derived classes.
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Joe

Quotelinux 2.6
Quoteif you're on windows, MFC
READ =)
[/size]

I'll give that a look Myndfyre
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


MyndFyre

Looks like it has event support to, via the Notify, SetNotify, and Callback functions.  :)
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

drka

Quote from: Joe[e2] on October 11, 2005, 08:58:32 PM
Quotelinux 2.6
Quoteif you're on windows, MFC
READ =)
[/size]

I'll give that a look Myndfyre
you and your gayness. MFC is still a good library

Newby

Quote from: Mangix on October 11, 2005, 10:13:57 PM
MFC is still a good library

But, as he stated, he cannot use it in Linux. :P
- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Joe

MFC is, in my eyes, the CSB of the entire C++ language.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


MyndFyre

Quote from: Joe[e2] on October 12, 2005, 08:05:44 AM
MFC is, in my eyes, the CSB of the entire C++ language.

Damnit, stupid power outage, now I have to start over.

Joe, that's patently retarded.  That's like saying the Java class library, or java.lang.* and javax.swing.* are the CSB of the Java language; or the System and System.Windows.Forms namespaces are the CSB of the .NET Framework languages; or that wxWidgets is the CSB of cross-platform C++.

Most people's problems with MFC stems from its bloat.  If you're using only the Windows part of it (objects deriving from CWnd), you can't specify a way to exclude CSocket from the library, or vice versa.

Plus, MFC is an extremely effective teaching tool for learning the Windows API.  They don't try to hide the fact that it's a wrapper for the Win32 API.  For example, the CWnd class defines the method CWnd::SetWindowPos(const CWnd*, int, int, int, int, UINT), which wraps the Win32 API function SetWindowPos(HWND, HWND, int, int, int, int, UINT).  All the CWnd function does is provide the window handle to the first parameter of the API, and translates the 2nd parameter (a pointer to another CWnd) into a window handle.

Languages and language libraries exist so the developer doesn't have to constantly reinvent the wheel.  If MFC is the CSB of C++, next time, create your own windowing implementation for Java (don't use Swing).
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Joe

Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


mynameistmp