genericopenlibs/openenvcore/backend/inc/sysif.h
branchRCL_3
changeset 53 9d9daa0f4b62
parent 25 7701629b34a6
child 54 4332f0f7be53
equal deleted inserted replaced
33:6896b031c3e1 53:9d9daa0f4b62
    56 class CFileDesTransferServer;
    56 class CFileDesTransferServer;
    57 class RFileDesTransferSession;
    57 class RFileDesTransferSession;
    58 class CFileDescBase;
    58 class CFileDescBase;
    59 /* TODO: We don't have to do this in CFileTable. Move to methods */
    59 /* TODO: We don't have to do this in CFileTable. Move to methods */
    60 class CFileSocketDesc;
    60 class CFileSocketDesc;
    61 
    61 class CSocketDesc;
    62 struct TChild
    62 struct TChild
    63 /*
    63 /*
    64 @internalComponent
    64 @internalComponent
    65 */
    65 */
    66 	{
    66 	{
   513 	static TInt handleaselect(TAny* aPtr);
   513 	static TInt handleaselect(TAny* aPtr);
   514 	
   514 	
   515 	RArray<TASelectRequest>& ASelectRequest();
   515 	RArray<TASelectRequest>& ASelectRequest();
   516 	
   516 	
   517 	RFastLock& ASelectLock();
   517 	RFastLock& ASelectLock();
       
   518 	
       
   519 	inline RFastLock& DefConnLock() { return iDefConnLock; }
       
   520 	
       
   521 	inline TInt AddSocket(CSocketDesc* aPtr)
       
   522 	    {
       
   523         RHeap* oheap = User::SwitchHeap(iPrivateHeap);
       
   524 	    TInt ret = iSocketArray.InsertInAddressOrder(aPtr);
       
   525 	    User::SwitchHeap(oheap);	    
       
   526 	    return ret;
       
   527 	    }
       
   528 	
       
   529 	inline void RemoveSocket(CSocketDesc* aPtr)
       
   530 	    {
       
   531 	    TInt index = iSocketArray.FindInAddressOrder(aPtr);
       
   532 	    if (index != -1)
       
   533 	        {
       
   534 			RHeap* oheap = User::SwitchHeap(iPrivateHeap);
       
   535             iSocketArray.Remove(index);            
       
   536             iSocketArray.Compress();
       
   537             User::SwitchHeap(oheap);
       
   538 	        }
       
   539 	    }
       
   540 	
   518 	int system (const wchar_t* aCmd, const wchar_t* aCmdArg, int& anErrno );
   541 	int system (const wchar_t* aCmd, const wchar_t* aCmdArg, int& anErrno );
   519 	const wchar_t* GetDirName (int aFid);
   542 	const wchar_t* GetDirName (int aFid);
   520 	IMPORT_C int Truncate (int aFid, off_t anOffset, int& anErrno);
   543 	IMPORT_C int Truncate (int aFid, off_t anOffset, int& anErrno);
   521 	int fchmod (int fd , mode_t  perms, int& anErrno);
   544 	int fchmod (int fd , mode_t  perms, int& anErrno);
   522 
   545 
   653 	RArray<TASelectRequest> iASelectRequest;
   676 	RArray<TASelectRequest> iASelectRequest;
   654 	
   677 	
   655 	// Default connection settings, set/cleared using setdefaultif
   678 	// Default connection settings, set/cleared using setdefaultif
   656 	TConnPref* iDefConnPref;
   679 	TConnPref* iDefConnPref;
   657     RTz     iTzServer;	
   680     RTz     iTzServer;	
       
   681     RPointerArray<CSocketDesc> iSocketArray;
   658 #ifdef SYMBIAN_OE_POSIX_SIGNALS
   682 #ifdef SYMBIAN_OE_POSIX_SIGNALS
   659 	// Signal handler thread
   683 	// Signal handler thread
   660 	RThread 				iSignalHandlerThread;
   684 	RThread 				iSignalHandlerThread;
   661 	RPipe					iSignalReadPipe;
   685 	RPipe					iSignalReadPipe;
   662 	RPipe					iSignalWritePipe;
   686 	RPipe					iSignalWritePipe;