Click here to Skip to main content
14,269,640 members

ATL / WTL / STL

 
GeneralRe: using friend Pin
Richard MacCutchan11-Dec-14 23:07
protectorRichard MacCutchan11-Dec-14 23:07 
GeneralRe: using friend Pin
Aescleal11-Dec-14 23:52
memberAescleal11-Dec-14 23:52 
GeneralRe: using friend Pin
bkelly1312-Dec-14 12:12
memberbkelly1312-Dec-14 12:12 
GeneralRe: using friend Pin
Aescleal15-Dec-14 5:18
memberAescleal15-Dec-14 5:18 
AnswerRe: using friend Pin
Theo Buys22-Dec-14 4:25
memberTheo Buys22-Dec-14 4:25 
QuestionHow to create a dll as Unbreakable in C#.Net? Pin
karthickbm7-Dec-14 20:37
memberkarthickbm7-Dec-14 20:37 
AnswerRe: How to create a dll as Unbreakable in C#.Net? Pin
Richard MacCutchan7-Dec-14 22:52
protectorRichard MacCutchan7-Dec-14 22:52 
QuestionTCP/API class basic design Pin
bkelly138-Nov-14 16:31
memberbkelly138-Nov-14 16:31 
A transition from VS2008 to VS2012 has prompted some re-factoring.

I am the only one in my small group that writes in C++ or with OOP. My “plus plus” skills are self-taught with no opportunity for peer-to-peer discussions. Please forgive me for asking dumb question and give some basic guidance here. I do have rather significant skills in number crunching and handling high data rate non-OOP programming.

I am developing my TCP/API skills with a Server side all and a client side app. These will use the windows TCP/API with non-blocking and overlapped operations. To that end I envision the two classes:
C_TCP_API_Server
C_TCP_API_Client


But there is much functionality that is common to both classes, such as creating the sockets and setting their characteristics. I envision something like:
C_TCP_API_Core

This is to contain most or all of the low level API calls and all the error handling that goes with that.
That changes the first two classes to be:

Class C_TCP_API_Server :  public C_TCP_API_Core
Class C_TCP_API_Client :  public C_TCP_API_Core


This is the first time I have considered using inheritance. Code efficiency overrides simplicity.
Is this the right way to go?
Should the core class be abstract? Or would that be getting a bit advanced for me.

BTW: I Put the API in the class names to indicate that this code goes as close to the Windows API and the lowest level code I can get. I want the minimum overhead between the code I wrote and the OS (Operating System). It will be handling high and continuous data rates.
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com


AnswerRe: TCP/API class basic design Pin
Garth J Lancaster8-Nov-14 16:56
professionalGarth J Lancaster8-Nov-14 16:56 
GeneralRe: TCP/API class basic design Pin
bkelly139-Nov-14 2:15
memberbkelly139-Nov-14 2:15 
AnswerRe: TCP/API class basic design Pin
Garth J Lancaster8-Nov-14 17:06
professionalGarth J Lancaster8-Nov-14 17:06 
GeneralRe: TCP/API class basic design Pin
bkelly139-Nov-14 2:19
memberbkelly139-Nov-14 2:19 
AnswerRe: TCP/API class basic design Pin
Albert Holguin10-Nov-14 4:58
professionalAlbert Holguin10-Nov-14 4:58 
GeneralRe: TCP/API class basic design Pin
bkelly1310-Nov-14 12:40
memberbkelly1310-Nov-14 12:40 
AnswerRe: TCP/API class basic design Pin
Albert Holguin10-Nov-14 16:47
professionalAlbert Holguin10-Nov-14 16:47 
GeneralMultiple threads explained Pin
bkelly1311-Nov-14 6:30
memberbkelly1311-Nov-14 6:30 
GeneralRe: Multiple threads explained Pin
Albert Holguin11-Nov-14 7:01
professionalAlbert Holguin11-Nov-14 7:01 
GeneralRe: Multiple threads explained Pin
bkelly1311-Nov-14 9:58
memberbkelly1311-Nov-14 9:58 
AnswerRe: TCP/API class basic design Pin
pasztorpisti10-Jan-15 11:06
professionalpasztorpisti10-Jan-15 11:06 
QuestionTime of reading text file Pin
econy7-Nov-14 4:24
memberecony7-Nov-14 4:24 
QuestionRe: Time of reading text file Pin
Richard MacCutchan8-Nov-14 21:33
protectorRichard MacCutchan8-Nov-14 21:33 
AnswerRe: Time of reading text file Pin
econy11-Nov-14 2:06
memberecony11-Nov-14 2:06 
GeneralRe: Time of reading text file Pin
Richard MacCutchan11-Nov-14 5:42
protectorRichard MacCutchan11-Nov-14 5:42 
GeneralRe: Time of reading text file Pin
econy11-Nov-14 6:56
memberecony11-Nov-14 6:56 
GeneralRe: Time of reading text file Pin
Richard MacCutchan11-Nov-14 7:05
protectorRichard MacCutchan11-Nov-14 7:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.