Guest_imported
New member
- Jan 1, 1970
- 0
In my client/server application, Client sends various types of data (string, int, and so on). How can i handle all data types at server side ?
Server can take only a string, if i send int it also takes input as bytes array, so its good for string but not for other data types.
If there some universal method which can read any data types from sockets ? Or how can i solve this problem using standard sockets writer/reader ?
Server can take only a string, if i send int it also takes input as bytes array, so its good for string but not for other data types.
If there some universal method which can read any data types from sockets ? Or how can i solve this problem using standard sockets writer/reader ?