>
>I've been playing around with some peer-to-peer stuff in MC (man, learnin'
>to love those sockets), and it's seeming to simple that I find myself
>thinking:  "Am I missing something?  Shouldn't this be harder?"
>
>For example, if all I want to do is transfer a file from one machine to
>another, it's so very much simpler to do this with a simple write/read to
>the socket than FTP.
>
>So I'm wondering:  Aside from the more obvious error-checking, what special
>considerations should I take into account when using sockets in MC to
>transfer files and other data among peers running other MC apps?

I think you should consider a minimum identity checking: don't send data until the 
server
acknowledges your connection, don't accept data until you trust the client. 
Doing all transactions on the same socket without blocking is a good idea.
Also, I'd use some form of "end-of-message" so that the server can tell the client the
transfer is done.

>
>-- 
> Richard Gaskin 


Regards, Andu 
_______________________
[EMAIL PROTECTED]

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to