A sample QUIC server and client. establishing connection with QUIC protocol

1,962 views
Skip to first unread message

shimon weiner

unread,
May 17, 2016, 8:49:36 AM5/17/16
to QUIC Prototype Protocol Discussion group
Hello everyone.
  I am a computer science student. And I'm doing a research project on the subject of communication protocols
  I am trying to to make a comparison between different protocols - TCP UDP and UDT QUIC
.I've been three weeks trying to open a basic connection using QUIC protocol without success
But it still does not work
If any of you can help me I will be happy!

Ryan Hamilton

unread,
May 17, 2016, 9:34:08 AM5/17/16
to proto...@chromium.org
Can you please explain what doesn't work for you? Which step isn't working? Do you see any error messages?

--
You received this message because you are subscribed to the Google Groups "QUIC Prototype Protocol Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proto-quic+...@chromium.org.
To post to this group, send email to proto...@chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

shimon weiner

unread,
May 17, 2016, 10:02:58 AM5/17/16
to proto...@chromium.org
First, I really appreciate your help. thank you. 

Actually I dont want to change or use the code of QUIC but only to use it in order to transfer one certain file from one computer to another one. thats it.
Can you please explain me generally what I need to do? because I think that all the posts on the forum are not belongs to me. Maybe Im wrong.
Please if you could can explain me shortly...

Thank you again

Ryan Hamilton

unread,
May 17, 2016, 10:12:30 AM5/17/16
to proto...@chromium.org
You should be able to follow the instructions on the page to build a QUIC client and server, and use the client to transfer data from the server. In order to help in more detail, I'd need to know which step is not working for you. Can you provide more details?

shimon weiner

unread,
May 17, 2016, 11:06:02 AM5/17/16
to proto...@chromium.org
ok.. i  got stuck with the installation of Chromium.
I'll do it again to tell you where exactly.
Just want to understand .. What this Chromium? I have installed it?
thank you!

Ryan Hamilton

unread,
May 17, 2016, 2:35:31 PM5/17/16
to proto...@chromium.org
Chromium is the open source project behind the Chrome web browser which hosts the QUIC source code. The main QUIC instructions are here:


and they link to the instructions for how to checkout the chromium (and hence QUIC) code:


You will need to follow those instructions to check out the code.

Cheers,

Ryan

shimon weiner

unread,
May 17, 2016, 3:52:47 PM5/17/16
to proto...@chromium.org
thank you! i will try it tommorow.

shimon weiner

unread,
May 23, 2016, 9:04:39 AM5/23/16
to proto...@chromium.org
hellow.
 sorry about the big delay. 
I tried to follow the instructions and came across next-section.
in the part of the TL; DR
when i write fetch {chromium,blink,...} sync
fet
Could not find a config for {chromium,blink,...}.
If I continue to the next instruction- gclient its looks fine.

when i write(in the cmd)- C:\chromium>fetch blink  
its writing me- Could not find a config for blink

thank you!!


Ryan Hamilton

unread,
May 23, 2016, 11:04:28 AM5/23/16
to proto...@chromium.org
At that step, {chromium, blink, ...} means you have a choice of what to fetch. In your case, "fetch chromium". Can you try that?

shimon weiner

unread,
May 24, 2016, 6:15:43 AM5/24/16
to proto...@chromium.org
its writing me -            C:\chromium>fetch chromium
Running: 'C:\Users\USER_2\Desktop\shimon\python276_bin\python.exe' 'C:\Users\USE
R_2\Desktop\shimon\gclient.py' root
Your current directory appears to already contain, or be part of,
a checkout. "fetch" is used only to get new checkouts. Use
"gclient sync" to update existing checkouts.

Fetch also does not yet deal with partial checkouts, so if fetch
failed, delete the checkout and start over (crbug.com/230691).

Ryan Hamilton

unread,
May 24, 2016, 11:22:35 AM5/24/16
to proto...@chromium.org
fetch chromium is expected to be run from an empty directory; one that is not part of a checkout. Can you create an empty directory and try running fetch chromium from there?

shimon weiner

unread,
May 24, 2016, 11:42:35 AM5/24/16
to proto...@chromium.org
ok now i get this-
 C:\chromium>fetch chromium
Running: 'C:\Users\USER_2\Desktop\shimon\python276_bin\python.exe' 'C:\Users\USE
R_2\Desktop\shimon\gclient.py' root
Running: 'C:\Users\USER_2\Desktop\shimon\python276_bin\python.exe' 'C:\Users\USE
R_2\Desktop\shimon\gclient.py' config --spec 'solutions = [
  {
    "managed": False,
    "name": "src",
    "custom_deps": {},
    "deps_file": ".DEPS.git",
    "safesync_url": "",
  },
]
'
Running: 'C:\Users\USER_2\Desktop\shimon\python276_bin\python.exe' 'C:\Users\USE
R_2\Desktop\shimon\gclient.py' sync

But now it runs for a long time .. i think its stuck.
 thank you!

Ryan Hamilton

unread,
May 24, 2016, 12:37:14 PM5/24/16
to proto...@chromium.org
On Tue, May 24, 2016 at 8:42 AM, shimon weiner <shimonw...@gmail.com> wrote:
ok now i get this-
 C:\chromium>fetch chromium
Running: 'C:\Users\USER_2\Desktop\shimon\python276_bin\python.exe' 'C:\Users\USE
R_2\Desktop\shimon\gclient.py' root
Running: 'C:\Users\USER_2\Desktop\shimon\python276_bin\python.exe' 'C:\Users\USE
R_2\Desktop\shimon\gclient.py' config --spec 'solutions = [
  {
    "managed": False,
    "name": "src",
    "custom_deps": {},
    "deps_file": ".DEPS.git",
    "safesync_url": "",
  },
]
'
Running: 'C:\Users\USER_2\Desktop\shimon\python276_bin\python.exe' 'C:\Users\USE
R_2\Desktop\shimon\gclient.py' sync

But now it runs for a long time .. i think its stuck.

​It takes quite a long time to download chromium. I'd give it at least an hour.

shimon weiner

unread,
May 24, 2016, 1:05:06 PM5/24/16
to proto...@chromium.org
ok its finished. now what i need put here- (instead the branch_name).
# Make a new change and upload it for review
$ git new-branch <branch_name>

i tryed to put another name 

C:\chromium>git new-branch shimon
fatal: Not a git repository (or any of the parent directories): .git

C:\chromium>git new-branch shimon.git
fatal: Not a git repository (or any of the parent directories): .git

 I know it's simple questions and I appreciate your help

>

Ryan Hamilton

unread,
May 24, 2016, 1:06:22 PM5/24/16
to proto...@chromium.org
​did you cd into the src directory first?​

shimon weiner

unread,
May 24, 2016, 1:18:25 PM5/24/16
to proto...@chromium.org
you just! now it opens a me a cl_descriptionlc6gkp file in notepad. 
what is that? what changes do I need this file?

Ryan Hamilton

unread,
May 24, 2016, 1:30:11 PM5/24/16
to proto...@chromium.org
Glad to hear you are able to make progress. Which step in the instructions caused that file to be opened in notepad?

shimon weiner

unread,
May 24, 2016, 1:45:43 PM5/24/16
to proto...@chromium.org
when i writed this in the cmd-
 C:\chromium\src>git cl upload
Using 50% similarity for rename/copy detection. Override with --similarity.
Running presubmit upload checks ...

Presubmit checks passed.


and in the notepad file its bring me a options-

# Enter a description of the change.
# This will be displayed on the codereview site.
# The first line will also be used as the subject of the review.
#--------------------This line is 72 characters long--------------------

BUG=

Ryan Hamilton

unread,
May 24, 2016, 1:47:51 PM5/24/16
to proto...@chromium.org
I think the file contains the information you are looking for:

# Enter a description of the change.
# This will be displayed on the codereview site.
# The first line will also be used as the subject of the review.

Cheers,

Ryan

shimon weiner

unread,
May 24, 2016, 3:23:00 PM5/24/16
to proto...@chromium.org
but i dont wont to change it.. 
and when i got "Presubmit checks passed"  in the cmd its stuck.
thank you!

Robbie Shade

unread,
May 24, 2016, 3:43:12 PM5/24/16
to proto...@chromium.org
It sounds like you've managed to checkout Chromium. You need to get it to build, following the instructions here: http://www.chromium.org/developers/how-tos/get-the-code

Stop once you've finished the "Building Chromium" (or "Running Chromium") section -  from the last few messages it sounds like you might be trying to follow the "Submitting your code" section.

Once you have that working, follow the QUIC specific instructions here: https://www.chromium.org/quic/playing-with-quic

shimon weiner

unread,
May 24, 2016, 4:46:51 PM5/24/16
to proto...@chromium.org
    followed the instructions but when I comes to "building Chromium" and examines what folders i have in my Chromium, I find that only the src and  file-     
".gclient  " 
by the instructions  need to be ".gclient_entries" file and the out directory in the src. 
i dont have it.
do you know why? 
thank again and again! 
 

shimon weiner

unread,
May 30, 2016, 5:54:43 AM5/30/16
to proto...@chromium.org
Does anyone have a solution to last post? thank .

Robbie Shade

unread,
May 30, 2016, 10:25:10 AM5/30/16
to proto...@chromium.org
Do you mean that you have successfully checked out Chromium? There should be a number of files and directories inside ~/chromium/src

From inside the ~/chromium/src directory you need to run the right incantation to generate build directories, see the "Setting up the build" section of the instructions. I think you need to run either "gn gen out/Default" or "gclient runhooks".

--

Povilas Balciunas

unread,
May 30, 2016, 11:10:54 PM5/30/16
to QUIC Prototype Protocol Discussion group
Have you tried https://github.com/google/proto-quic?
You don't need to build from chromium sources.

shimon weiner

unread,
Jun 1, 2016, 1:04:46 PM6/1/16
to proto...@chromium.org
thank you about your help! 

I followed the instructions    here:        http://www.chromium.org/developers/how-tos/get-the-code  
 Until this "Setting up the build" , everything was fine.
when i when i go to the next level-   "Building"     with this command - "ninja -C out/Default chrome"    
this what i get-

527): warning C4819: The file contains a character that cannot be represented in
 the current code page (1255). Save the file in Unicode format to prevent data l
oss
ninja: build stopped: subcommand failed.


Do you know what could be the problem?
I tried to repeat the instructions and it din't help ..
 אישמ
--
Reply all
Reply to author
Forward
0 new messages