network-protocols

Limiting the amount of sending the presence while integrating Quickblox SDK

*爱你&永不变心* 提交于 2019-12-11 11:18:48
问题 Let me try to explain clearly, I'm using the QucikBlox SDK for Video calls between two users. It's working great. But, I need to send the presence of user to QB server for every 30 seconds. [NSTimer scheduledTimerWithTimeInterval:30 target:[QBChat instance] selector:@selector(sendPresence) userInfo:nil repeats:YES]; This may consume some network connection data of the user. Is there any way to limit this method call?(I don't know whether I'm explaining correct.If any clarifications - please

TCP server in C client in java comunication

痞子三分冷 提交于 2019-12-11 10:17:35
问题 I have server in c and client in java but it doesn't work. 1. run server, server wait for clients 2. run client - client sends string 3. server get the firs character and increment it and send to client //i expect this but server gets some wrong char 4.client get character and write it on screen //expect this, but client fail with this exception: Exception in thread "main" java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io

Detecting codec used in RTP stream (for dynamic PTs)

余生长醉 提交于 2019-12-11 07:29:14
问题 Is it possible to detect the codec used in an RTP stream by analyzing the RTP stream alone? I know about the payload type (PT) field in the RTP header -- that can be used to identify codecs that have statically assigned PT numbers. What about the other codecs that use the dynamic PT number range? Are there any heuristics to detect the type of the payload? I'm interested in all kinds of solutions, even if the detection works for one codec only. 回答1: Sure, you can sniff around the packet to see

Android application crashes because of protobuf

与世无争的帅哥 提交于 2019-12-11 05:45:22
问题 I have an Android application implemented with help of cocos2d-x engine. I linked protobuf library to the project and trying to SerializeToStrint() one proto-object: ProtoMessage message; message.set_app_id(1111); message.set_hardware_id("test string"); std::string str; message.SerializeToString(&str); That's builds fine, but when I trying to start application logcat send me next log: 09-14 10:26:51.748 13009 13009 I DEBUG : Build fingerprint: verizon/droid2we_vzw/cdma_droid2we:2.3.4/4.5.1_57

While using HTTPS protocol, who encrypts the message, the Browser or the Network Card?

旧城冷巷雨未停 提交于 2019-12-11 05:32:31
问题 I am reading about WCF Transport Security and I get a plethora of doubts in my mind because I have less network knowledge. They say, Transport security is good to use only when there is direct communication between client and server. There should be no intermediaries. First of all I want to know, what are these intermediaries ? According to me, they are the routers sitting in between, which relay the messages to next hop, and are not complete computer systems, on which somebody can sit and

Why no “what's my ip” well-known port/service?

北战南征 提交于 2019-12-11 03:48:39
问题 I know there are some web sites that provide this service but given that pretty much everyone lives behind NAT these days, why isn't this standardized on a port and provided as a service to whomever wants to run it? It's at least as useful as an echo, daytime or "quote of the day" server and as easy to implement. Or does one exist that I am aware of? Any proposals/RFCs in progress? EDIT: Thanks to everyone for a lively and thoughtful discussion. 回答1: It's standarised with the STUN protocol in

length of captured packets more than MTU

一曲冷凌霜 提交于 2019-12-11 01:17:36
问题 I m running iperf between two machines (linux) and I can observe the mtu of both the interfaces connected is 1500. I ran tcpdump to capture packets and I observed some packets have "length as 2962"....how come this is possible with mtu as only 1500? Please clarify. Thanks! Note: flags field is set as DF. and proto is TCP 回答1: Turning off gso (in linux) did the trick Referred: http://lists.openwall.net/netdev/2008/11/14/20 来源: https://stackoverflow.com/questions/2350985/length-of-captured

Determine protocol of a network drive

爱⌒轻易说出口 提交于 2019-12-10 23:54:18
问题 Is there a way to determine the protocol name (SMB/CIFS,NFS) and version that is used for a mounted network drive on windows? (in C#) EDIT Using info from Rusted's answer, i got the following information from a windows 7 computer on the network. NETRESOURCE res = WinApiWNETwrapper.GetResourceInfo("\\Test-PC"); res.dwDisplayType = SERVER res.dwScope = 0 res.dwType = ANY res.dwUsage = CONTAINER res.lpComment = "" res.lpLocalName = null res.lpProvider = "Microsoft Windows Network" res

Design(Classes, methods, interfaces) of real time applications(server/client)

邮差的信 提交于 2019-12-10 23:17:41
问题 I´ve been looking for a good book or article about this topic but didnt find much. I didnt find a good example - piece of code - for a specific scenario. Like clients/server conversation. In my application´s protocol they have to send/recieve messages. Like: Server want to send a file to a client Client can accpet or no, if he accepts, server will send bytes over the same connection/socket. The rest of my application all uses blocking methods, server has a method Heres what I did: Server

cURL Error 1: Unsupported protocol: https

纵然是瞬间 提交于 2019-12-10 17:09:38
问题 All, I am trying to HTTPS POST a SOAP request via PHP's cURL wrapper methods but keep getting the following cURL error: Error 1: Unsupported protocol: https, Any ideas why this is happening? The target URL is good and I'm able to reach it via commandline. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$this->apiURL); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-type: text/xml;charset=UTF-8', 'Content-length: '.strlen($SOAPRequest), 'SOAPAction: ""' ) ); curl_setopt($ch, CURLOPT