Giter Site home page Giter Site logo

Comments (8)

lummie avatar lummie commented on May 14, 2024

I'll take this :)

from croc.

schollz avatar schollz commented on May 14, 2024

Great! Don't hesitate to send me a question

from croc.

lummie avatar lummie commented on May 14, 2024

Is it possible to run it all on one machine for testing ?
Tried ./croc -relay in one terminal
./croc -server localhost -send ~/Pictures/Avatar.png in another and both just output a cat and croc version...

from croc.

schollz avatar schollz commented on May 14, 2024

@lummie Yes. Its not clear at the moment, but you had the right idea. You need to run three commands in three different terminals:

  1. ./croc -relay will be the relay
  2. ./croc -server localhost -send FILE -code 1-test will send the file, with code specified
  3. ./croc -server localhost -code 1 test will receive the file without prompting about the code

from croc.

schollz avatar schollz commented on May 14, 2024

Oh also I just found I deleted those lines that tell you what to do after you start sending, fixed!

from croc.

lummie avatar lummie commented on May 14, 2024

@schollz Ok have done the rejecting multiple senders with the same key and tested it.
For the multiple receiver connections side, am I right in saying that the receiver is not recorded until here https://github.com/schollz/croc/blob/master/relay.go#L169
which is after the received has given consent, so up until this point multiple receivers could be connected but only those connected whilst the file was downloading would be rejected.
Are you happy with this? If not then we need to add a map of potentialReceivers to the connectionMap and use this to reject multiple receivers.

from croc.

schollz avatar schollz commented on May 14, 2024

@lummie You are correct in that! I didn't think about that. I think having a map of potentialReceivers is a great solution. Would you like to add that too?

from croc.

lummie avatar lummie commented on May 14, 2024

@schollz will do :)

from croc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.