2 * Copyright (C) 2014 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef RIL_SOCKET_H_INCLUDED
18 #define RIL_SOCKET_H_INCLUDED
19 #include <libril/ril_ex.h>
20 #include "rilSocketQueue.h"
21 #include <ril_event.h>
24 * Abstract socket class representing sockets in rild.
26 * This class performs the following functions :
28 * <li> Start socket listen.
29 * <li> Handle socket listen and command callbacks.
53 RilSocket(const char* socketName, RIL_SOCKET_ID socketId) {
61 * @return RIL_SOCKET_ID socket id.
63 RIL_SOCKET_ID getSocketId(void) {
67 virtual ~RilSocket(){}