equal
deleted
inserted
replaced
20 #ifndef CSOCKETROUTER_H |
20 #ifndef CSOCKETROUTER_H |
21 #define CSOCKETROUTER_H |
21 #define CSOCKETROUTER_H |
22 |
22 |
23 // INCLUDES |
23 // INCLUDES |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 #include "CSocket.h" |
25 #include "Csocket.h" |
26 #include "MSocketObserver.h" |
26 #include "MSocketObserver.h" |
27 #include "MProtocolObserverTCP.h" |
27 #include "MProtocolObserverTCP.h" |
28 #include "MProtocolObserverUDP.h" |
28 #include "MProtocolObserverUDP.h" |
29 #include "MUDPSenderObserver.h" |
29 #include "MUDPSenderObserver.h" |
30 #include "CWriteEvent.h" |
30 #include "CWriteEvent.h" |
99 */ |
99 */ |
100 void RemovePeerSocket( RSocket* aSocket ); |
100 void RemovePeerSocket( RSocket* aSocket ); |
101 |
101 |
102 /** |
102 /** |
103 * Finds peer socket from the array. |
103 * Finds peer socket from the array. |
104 * @param aRemotePort A port to remove from the array |
104 * @param aPort A port to remove from the array |
105 * @return index of the peer socket, -1 if not found |
105 * @return index of the peer socket, -1 if not found |
106 */ |
106 */ |
107 TInt FindPeerSocket( TUint aRemotePort ); |
107 TInt FindPeerSocket( TUint aPort ); |
108 |
108 |
109 /** |
109 /** |
110 * Removes all peer sockets from the array. |
110 * Removes all peer sockets from the array. |
111 */ |
111 */ |
112 void RemoveAllPeers(); |
112 void RemoveAllPeers(); |
183 protected: // From MProtocolObserverTCP |
183 protected: // From MProtocolObserverTCP |
184 |
184 |
185 void TCPFrameParsedL( TUint aPort, const TDesC8& aData ); |
185 void TCPFrameParsedL( TUint aPort, const TDesC8& aData ); |
186 void OpenLocalTCPConnectionL( TUint aPort ); |
186 void OpenLocalTCPConnectionL( TUint aPort ); |
187 void OpenListeningTCPConnectionL( TUint aPort ); |
187 void OpenListeningTCPConnectionL( TUint aPort ); |
188 void CloseTCPConnection( TUint aPort ); |
188 void CloseTCPConnectionL( TUint aPort ); |
189 void CloseAllTCPConnections(); |
189 void CloseAllTCPConnections(); |
190 |
190 |
191 protected: // From MProtocolObserverUDP |
191 protected: // From MProtocolObserverUDP |
192 |
192 |
193 void UDPFrameParsedL( TUint aPort, const TDesC8& aData ); |
193 void UDPFrameParsedL( TUint aPort, const TDesC8& aData ); |