hello there, long time ago, more than a year, i gain my answer from one moderator in here (C# section or such) so once again i back here, and i hope some one help me :-s
i start writing a game for my self to improve my own knowledge and also have thing to say about network programming which is required the must today....
so i make 3 class :
- TransmitionReciever
- TransmitionSender
- Pocket
i had no idea how it work i just scroll throgh namespaces, and then classes, and i find one of them... i still had now idea how to use it, so i start writing, till i reach to where i should read my packet..
but then i find out ... wow ... it's buffer reader writer , and the buffer is not serialized to object, but it's array of bytes... and seem (since class name and type) it work like a file, and every one write in it, so it will be full soon :-s
but what i need to do is :
- stablish connection
- if connection stablished, try to read my packet, if it reached successfully
- also send my packet to host
i write this code till i find out it's not what i'm looking for :-s
can you help me to write something better...
yeah, buffer reader writer is fast, but think of one day, i start writing program which need to monitor a system, or transmit image and ....
so i need to send and recieve object...