Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing a parent's object
Message
De
28/08/2007 10:24:58
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
28/08/2007 07:30:31
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01250681
Message ID:
01250905
Vues:
14
>Don't use the init of the objects to do much. Create your own Setup method on oSock and oHandler. Instantiate both oSock and oHandler within oxServer's Init and call their Setup methods. oxServer should have methods to support communication between oSock and oHandler. oxServer should have a method like GetState and GetAcknowledgement. oSock should have a method like GetState and oHandler should have a method like GetAcknowledgement. oHandler.GetState can then do THIS.Parent.GetState().
>
>My telephone handset has a jack for a headset. The jack is like oxServer. It connects the headset to the handset. The blueprints for each contain the details for each AND they show single connection points between each.
>
>Each of these don't know anything about the other except the connection points.

This is really the layout I have right now. oSock is created in EMPS_Class, but since oxServer is based on EMPS_Class, it should be availabe there as well. Right? I'm playing around with a GetState procedure and just can't seem to find a relationship to oSock.State from within the SendAcknowledgement procedure.
EMPS_Class
	Create oSock (based on Winsock)
		.State

EMPS_Handler_Class (just a hook right now)

EMPS_Medinotes_Handler_Class (based on EMPS_Handler_Class)
	SendAcknowledgement Procedure (needs oSock.State)

EMPS_Server_Class (based on EMPS_Class)
	Create oHandler (based on EMPS_Medinotes_Handler_Class)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform