Lines Matching refs:sessionId
81 static int OnFileSessionOpened(int sessionId, int result) in OnFileSessionOpened() argument
83 LOG("[cb][file]open session sid[%d],rst[%d]", sessionId, result); in OnFileSessionOpened()
87 static void OnFileSessionClosed(int sessionId) in OnFileSessionClosed() argument
89 LOG("[cb][file]close session sid[%d]", sessionId); in OnFileSessionClosed()
92 static void OnFileBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnFileBytesReceived() argument
94 LOG("[cb][file]ByteRec sid:%d, data len:%d", sessionId, dataLen); in OnFileBytesReceived()
96 LOG("[cb][file]ByteRec invalid data=null sid[%d]", sessionId); in OnFileBytesReceived()
100 static void OnFileMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnFileMessageReceived() argument
102 LOG("[cb][file]MessageRec sid:%d, data len:%d", sessionId, dataLen); in OnFileMessageReceived()
104 LOG("[cb][file]MessageRec invalid data=null sid[%d]", sessionId); in OnFileMessageReceived()
108 static int OnStreamSessionOpened(int sessionId, int result) in OnStreamSessionOpened() argument
110 LOG("[cb][stream]open session sid[%d],rst[%d]", sessionId, result); in OnStreamSessionOpened()
114 static void OnStreamSessionClosed(int sessionId) in OnStreamSessionClosed() argument
116 LOG("[cb][stream]close session sid[%d]", sessionId); in OnStreamSessionClosed()
133 static void StreamReceived(int sessionId, const StreamData *data, const StreamData *ext, const Stre… in StreamReceived() argument
148 LOG("[cb][stream]Rec sid:%d, data= %.*s.\n", sessionId, data->bufLen, data->buf); in StreamReceived()
153 static int OnDataSessionOpened(int sessionId, int result) in OnDataSessionOpened() argument
155 LOG("[cb][data]session opened sid:%d,ret:%d", sessionId, result); in OnDataSessionOpened()
159 static void OnDataSessionClosed(int sessionId) in OnDataSessionClosed() argument
161 LOG("[cb][data]session closed sid:%d", sessionId); in OnDataSessionClosed()
164 static void OnDataBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnDataBytesReceived() argument
166 if (sessionId < 0) { in OnDataBytesReceived()
167 LOG("[cb][data]byte received invalid session id[%d]", sessionId); in OnDataBytesReceived()
170 LOG("[cb][data]byte received sid:%d, data-len:%d", sessionId, dataLen); in OnDataBytesReceived()
171 int ret = SendBytes(sessionId, data, dataLen); in OnDataBytesReceived()
175 static void OnDataMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnDataMessageReceived() argument
177 if (sessionId < 0) { in OnDataMessageReceived()
178 LOG("[cb][data]mesg received invalid session id[%d]", sessionId); in OnDataMessageReceived()
181 LOG("[cb][data]mesg received sid:%d, data-len:%d", sessionId, dataLen); in OnDataMessageReceived()
182 int ret = SendMessage(sessionId, data, dataLen); in OnDataMessageReceived()
301 static int OnCtrlSessionOpened(int sessionId, int result) in OnCtrlSessionOpened() argument
303 LOG("[cb][ctrl]session opened sid:%d, ret:%d", sessionId, result); in OnCtrlSessionOpened()
307 static void OnCtrlSessionClosed(int sessionId) in OnCtrlSessionClosed() argument
309 LOG("[cb][ctrl]session closed sid:%d", sessionId); in OnCtrlSessionClosed()
312 static void OnCtrlBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnCtrlBytesReceived() argument
314 if (sessionId < 0) { in OnCtrlBytesReceived()
315 LOG("[cb][ctrl]byte received invalid session id[%d]", sessionId); in OnCtrlBytesReceived()
318 LOG("[cb][ctrl]byte received sid:%d, data-len:%d", sessionId, dataLen); in OnCtrlBytesReceived()
319 int ret = SendBytes(sessionId, data, dataLen); in OnCtrlBytesReceived()
323 static void OnCtrlMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnCtrlMessageReceived() argument
325 if (sessionId < 0) { in OnCtrlMessageReceived()
326 LOG("[cb][ctrl]mesg received invalid session id[%d]", sessionId); in OnCtrlMessageReceived()
329 LOG("[cb][ctrl]mesg received sid:%d, data-len:%d", sessionId, dataLen); in OnCtrlMessageReceived()
330 int ret = SendMessage(sessionId, data, dataLen); in OnCtrlMessageReceived()
350 static int OnPerfSessionOpened(int sessionId, int result) in OnPerfSessionOpened() argument
352 LOG("[cb][perf]session opened sid:%d, ret:%d", sessionId, result); in OnPerfSessionOpened()
356 static void OnPerfSessionClosed(int sessionId) in OnPerfSessionClosed() argument
358 LOG("[cb][perf]session closed sid:%d", sessionId); in OnPerfSessionClosed()
361 static void OnPerfBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnPerfBytesReceived() argument
363 if (sessionId < 0) { in OnPerfBytesReceived()
364 LOG("[cb][perf]byte received invalid session id[%d]", sessionId); in OnPerfBytesReceived()
367 LOG("[cb][perf]byte received sid:%d, data-len:%d", sessionId, dataLen); in OnPerfBytesReceived()
368 int ret = SendBytes(sessionId, data, dataLen); in OnPerfBytesReceived()
372 static void OnPerfMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnPerfMessageReceived() argument
374 if (sessionId < 0) { in OnPerfMessageReceived()
375 LOG("[cb][perf]mesg received invalid session id[%d]", sessionId); in OnPerfMessageReceived()
378 LOG("[cb][perf]mesg received sid:%d, data-len:%d", sessionId, dataLen); in OnPerfMessageReceived()
379 int ret = SendMessage(sessionId, data, dataLen); in OnPerfMessageReceived()
383 static int OnPassSessionOpened(int sessionId, int result) in OnPassSessionOpened() argument
385 LOG("[cb][pass]session opened sid:%d, ret:%d", sessionId, result); in OnPassSessionOpened()
389 static void OnPassSessionClosed(int sessionId) in OnPassSessionClosed() argument
391 LOG("[cb][pass]session closed sid:%d", sessionId); in OnPassSessionClosed()
394 static void OnPassBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnPassBytesReceived() argument
396 if (sessionId < 0) { in OnPassBytesReceived()
397 LOG("[cb][pass]byte received invalid session id[%d]", sessionId); in OnPassBytesReceived()
400 LOG("[cb][pass]byte received sid:%d, data-len:%d", sessionId, dataLen); in OnPassBytesReceived()
403 static void OnPassMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnPassMessageReceived() argument
405 if (sessionId < 0) { in OnPassMessageReceived()
406 LOG("[cb][pass]mesg received invalid session id[%d]", sessionId); in OnPassMessageReceived()
409 LOG("[cb][pass]mesg received sid:%d, data-len:%d", sessionId, dataLen); in OnPassMessageReceived()
412 static int OnProxySessionOpened(int sessionId, int result) in OnProxySessionOpened() argument
414 LOG("[cb][Proxy]session opened sid:%d, ret:%d", sessionId, result); in OnProxySessionOpened()
418 static void OnProxySessionClosed(int sessionId) in OnProxySessionClosed() argument
420 LOG("[cb][Proxy]session closed sid:%d", sessionId); in OnProxySessionClosed()
423 static void OnProxyBytesReceived(int sessionId, const void* data, unsigned int dataLen) in OnProxyBytesReceived() argument
425 if (sessionId < 0) { in OnProxyBytesReceived()
426 LOG("[cb][Proxy]byte received invalid session id[%d]", sessionId); in OnProxyBytesReceived()
429 LOG("[cb][Proxy]byte received sid:%d, data-len:%d", sessionId, dataLen); in OnProxyBytesReceived()
430 int ret = SendBytes(sessionId, data, dataLen); in OnProxyBytesReceived()
434 static void OnProxyMessageReceived(int sessionId, const void* data, unsigned int dataLen) in OnProxyMessageReceived() argument
436 if (sessionId < 0) { in OnProxyMessageReceived()
437 LOG("[cb][Proxy]mesg received invalid session id[%d]", sessionId); in OnProxyMessageReceived()
440 LOG("[cb][Proxy]mesg received sid:%d, data-len:%d", sessionId, dataLen); in OnProxyMessageReceived()
441 int ret = SendMessage(sessionId, data, dataLen); in OnProxyMessageReceived()