rc recv in a main()