connect                 package:nws                 R Documentation

_C_r_e_a_t_e _s_o_c_k_e_t _c_o_n_n_e_c_t_i_o_n_s _b_e_t_w_e_e_n _t_h_e _m_a_s_t_e_r _a_n_d _e_a_c_h _o_f _t_h_e _s_l_e_i_g_h _w_o_r_k_e_r_s.

_D_e_s_c_r_i_p_t_i_o_n:

     This provides a way to efficiently transfer large objects back and
     forth between the master and workers.

_U_s_a_g_e:

     ## S4 method for signature 'sleigh':
     connect(.Object, master, port)

_A_r_g_u_m_e_n_t_s:

 .Object: an object of class 'sleigh'.

  master: the address of the master.

    port: the port number that the worker should connect to.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     # create a sleigh and create connections to each of the workers
     s = sleigh()
     connect(s)
     ## End(Not run)

