src/libYARP_OS/src/Port.cpp
int Port::SendHelper(const YARPNameID& pid, const char *buf, int len, int tag)
{
	NewFragmentHeader *p_hdr;
	sender.Begin (pid);
	p_hdr = sender.AddHeader ();
	p_hdr->tag = tag;
	p_hdr->length = len;
	p_hdr->more = 0;
	p_hdr->first = 1;
	sender.Add ((char*)buf, len);
	return sender.End ();
}
///
/// prepares the connect command. the header is NewFragmentHeader. a sender is
/// a <vector>. The sender contains the YARPNameID of the destination. This is called
/// by Connect eventually. <pid> is the id of the port itself (self_id). the header
/// contains a NULL tag, the <buf> being the name of the destination (this triggers
/// the creation of a new OutputTarget). sender.End calls Fire and then the actual
///	send.
///
prepares the connect command. the header is NewFragmentHeader. a sender is
a . The sender contains the YARPNameID of the destination. This is called
by Connect eventually.  is the id of the port itself (self_id). the header
contains a NULL tag, the  being the name of the destination (this triggers
the creation of a new OutputTarget). sender.End calls Fire and then the actual
send.
prepares the connect command . the header is NewFragmentHeader . a sender is a . The sender contains the YARPNameID of the destination . This is called by Connect eventually . is the id of the port itself ( self_id ) . the header contains a NULL tag the being the name of the destination ( this triggers the creation of a new OutputTarget ) . sender . End calls Fire and then the actual send .
int Port::SendHelper(const YARPNameID& pid, const char *buf, int len, int tag)
{
	NewFragmentHeader *p_hdr;
	sender.Begin (pid);
	p_hdr = sender.AddHeader ();
	p_hdr->tag = tag;
	p_hdr->length = len;
	p_hdr->more = 0;
	p_hdr->first = 1;
	sender.Add ((char*)buf, len);
	return sender.End ();
}
int Port :: SendHelper ( const YARPNameID & pid , const char * buf , int len , int tag ) { NewFragmentHeader * p_hdr ; sender . Begin ( pid ) ; p_hdr = sender . AddHeader ( ) ; p_hdr -> tag = tag ; p_hdr -> length = len ; p_hdr -> more = 0 ; p_hdr -> first = 1 ; sender . Add ( ( char * ) buf , len ) ; return sender . End ( ) ; }
prepares the connect command.
prepares the connect command .