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
Post a Comment