Writing messages of different types through sockets in C -


i want send message binder class via tcp socket connection in c. have pass in request type (char*), ip address (int), argtypes(int array) etc. through connection using write() method. what's best method send of information in 1 single message?

there's no guarantee can send/receive data in single read/write operation; many factors may influence quality/packet-size/connection-stability/etc.
question/answer explains it.

some c-examples here.
explanation of socket programming in c.
quick overview of tcp/ip.

about sending different types of messages:
data send server-app received client-app can interpret data way likes.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -