504 |
504 |
505 int select (int maxfd, fd_set* readfds,fd_set* writefds,fd_set* exceptfds, struct timeval* tvptr, int& anErrno); |
505 int select (int maxfd, fd_set* readfds,fd_set* writefds,fd_set* exceptfds, struct timeval* tvptr, int& anErrno); |
506 |
506 |
507 int aselect(int maxfd, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *tvptr, TRequestStatus* requeststatus,int& anErrno); |
507 int aselect(int maxfd, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *tvptr, TRequestStatus* requeststatus,int& anErrno); |
508 |
508 |
509 int cancelaselect(TRequestStatus* requeststatus,int& anErrno,int performcleanup = 0); |
509 int cancelaselect(TRequestStatus* requeststatus, int& anErrno, TBool perform_cleanup = EFalse); |
510 |
510 |
511 int eselect(int maxfd, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *tvptr, int arraycount,TRequestStatus* waitarray,int& anErrno); |
511 int eselect(int maxfd, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *tvptr, int arraycount,TRequestStatus* waitarray,int& anErrno); |
512 |
512 |
513 static TInt handleaselect(TAny* aPtr); |
513 static TInt handleaselect(TAny* aPtr); |
514 |
514 |
550 |
550 |
551 int SetEcho(int aFd, TUint8 aEcho, int& aErrno); |
551 int SetEcho(int aFd, TUint8 aEcho, int& aErrno); |
552 |
552 |
553 //Set the default interface for network operations |
553 //Set the default interface for network operations |
554 int setdefaultif(const struct ifreq* aIfReq); |
554 int setdefaultif(const struct ifreq* aIfReq); |
|
555 int unsetdefaultif(TBool allow_bringup = ETrue); |
555 |
556 |
556 IMPORT_C CFileDescBase* GetDesc(int aFid); |
557 IMPORT_C CFileDescBase* GetDesc(int aFid); |
557 |
558 |
558 // functions returning session to File Server |
559 // functions returning session to File Server |
559 IMPORT_C RFs& FileSession(); |
560 IMPORT_C RFs& FileSession(); |
667 RFastLock iTLDListLock; |
668 RFastLock iTLDListLock; |
668 //The default connection to be used for all network apis. |
669 //The default connection to be used for all network apis. |
669 RConnection iDefConnection; |
670 RConnection iDefConnection; |
670 //Protect the iDefConnection from concurrent GetDefaultConnection calls |
671 //Protect the iDefConnection from concurrent GetDefaultConnection calls |
671 RFastLock iDefConnLock; |
672 RFastLock iDefConnLock; |
|
673 //Calling unsetdefaultif(), instead of setdefaultif(NULL) ensures that the torn down |
|
674 //connection is not brought back up again, by subsequent socket/network calls. |
|
675 //This variable enables this facility. It is reset to default (ETrue) by setdefaultif(<pref>) |
|
676 TBool iDefConnResurrect; |
672 //Lock for protecting iASelectRequest across threads |
677 //Lock for protecting iASelectRequest across threads |
673 RFastLock iASelectLock; |
678 RFastLock iASelectLock; |
674 |
679 |
675 // iASelectRequest holds the TASelectRequest objects of the aselect requests |
680 // iASelectRequest holds the TASelectRequest objects of the aselect requests |
676 RArray<TASelectRequest> iASelectRequest; |
681 RArray<TASelectRequest> iASelectRequest; |