I am searching cross-platform technique to write client-server application on MAC. I used BSD sockets, Cocoa APIs but I need to know which would be better at performance ?
Any suggestions are welcome.
I'm writing an application which involves passing file descriptors between two processes. I'm using unix domain sockets' sendmsg() and recvmsg() to do the same by passing FDs as ancillary data.
What I found in my tests is that the performance of sendmsg() for connection-mode SOCK_SEQPACKET sockets is way better than that of connection-less SOCK_DGRAM sockets.
I want to compare operating systems by performance on my hardware. Is there a cross-platform tool for doing it?
I need results of CPU and graphics performance!
I use ss -p to see TCP sockets information. But user info are not printed for some sockets, e.g. my SSH interactive login socket. My questions are:
Why are there sockets with no user associated?
Are these sockets with no user subjected to the owner module matching of iptables?
We are developing a network application based on C/S, in this application the server needs to transfer files to clients and sometimes receive files from clients. So in the server application, for every client it needs to create a control socket and many transfer sockets.
My question is how we can create and define a socket as role of control socket or transfer socket?
i have read about RAW sockets that they are UNIX domain sockets and don't generally go over the wire unlike TCP or UDP. They are used for interprocess communication. Also they are used in the implementation of new transport layer protocols and are also used in ICMP(for ping).
I was wondering if there is an easy way to find the maximum size that is supported by Linux sockets? (Is this configurable? If so where?)
For example, most of the socket examples found on the web send "Hello Socket" or some such other small string, however if I put the whole of War And Piece into the socket, when does it break?
As everything is a file, is it the maximum file size?
Hi,
I'm really thinking about purchasing this book - Internetworking with TCP/IP, Vol. III: Client-Server Programming and Applications, Linux/POSIX sockets version by Douglas Comer - but I have a few concerns...
1. Its the third is a series and I haven't read the first two, will this make the book hard - impossible to understand?
I have a client server program using sockets, one android tablet is server and the other android is client. it works fine in the first example shown below where i am sending a simple message, but in the second example below i tried to use an if statement and it does not work.