#include <UIPMC_Transport.h>
Inheritance diagram for TAO_UIPMC_Transport< CONNECTION_HANDLER >:
Overridden Template Methods | |
These are implementations of template methods declared by TAO_Transport. | |
virtual int | send_request (TAO_Stub *stub, TAO_ORB_Core *orb_core, TAO_OutputCDR &stream, int message_semantics, ACE_Time_Value *max_wait_time) |
virtual int | send_message (TAO_OutputCDR &stream, TAO_Stub *stub=0, int message_semantics=TAO_Transport::TAO_TWOWAY_REQUEST, ACE_Time_Value *max_time_wait=0) |
virtual int | messaging_init (CORBA::Octet major, CORBA::Octet minor) |
Initialising the messaging object. | |
virtual ACE_Event_Handler * | event_handler_i (void) |
virtual TAO_Connection_Handler * | connection_handler_i (void) |
virtual TAO_Pluggable_Messaging * | messaging_object (void) |
virtual ssize_t | send (iovec *iov, int iovcnt, size_t &bytes_transferred, const ACE_Time_Value *max_wait_time) |
Write the complete Message_Block chain to the connection. | |
virtual ssize_t | recv (char *buf, size_t len, const ACE_Time_Value *s=0) |
Read len bytes from into buf. | |
virtual int | register_handler (void) |
Public Member Functions | |
TAO_UIPMC_Transport (CONNECTION_HANDLER *handler, TAO_ORB_Core *orb_core) | |
Constructor. | |
~TAO_UIPMC_Transport (void) | |
Default destructor. | |
virtual int | handle_input (TAO_Resume_Handle &rh, ACE_Time_Value *max_wait_time=0) |
Look for the documentation in Transport.h. | |
Private Member Functions | |
void | write_unique_id (TAO_OutputCDR &miop_hdr, unsigned long unique) |
Construct and write a unique ID to the MIOP header. | |
Private Attributes | |
CONNECTION_HANDLER * | connection_handler_ |
TAO_Pluggable_Messaging * | messaging_object_ |
Our messaging object. |
Definition at line 43 of file UIPMC_Transport.h.
|
Constructor.
Definition at line 70 of file UIPMC_Transport.cpp. References ACE_NEW, and MIOP_MAX_DGRAM_SIZE.
00074 : TAO_Transport (IOP::TAG_UIPMC, 00075 orb_core) 00076 , connection_handler_ (handler) 00077 , messaging_object_ (0) 00078 { 00079 // Use the normal GIOP object 00080 ACE_NEW (this->messaging_object_, 00081 TAO_GIOP_Message_Base (orb_core, 00082 this, 00083 MIOP_MAX_DGRAM_SIZE)); 00084 00085 // Replace the default wait strategy with our own 00086 // since we don't support waiting on anything. 00087 delete this->ws_; 00088 ACE_NEW (this->ws_, 00089 TAO_UIPMC_Wait_Never (this)); 00090 } |
|
Default destructor.
Definition at line 93 of file UIPMC_Transport.cpp.
00094 { 00095 delete this->messaging_object_; 00096 } |
|
@TODO: These methods IMHO should have more meaningful names. The names seem to indicate nothing. Implements TAO_Transport. Definition at line 107 of file UIPMC_Transport.cpp.
00108 { 00109 return this->connection_handler_; 00110 } |
|
@TODO: These methods IMHO should have more meaningful names. The names seem to indicate nothing. Implements TAO_Transport. Definition at line 100 of file UIPMC_Transport.cpp.
00101 { 00102 return this->connection_handler_; 00103 } |
|
Look for the documentation in Transport.h.
Reimplemented from TAO_Transport. Definition at line 440 of file UIPMC_Transport.cpp. References ACE_DEBUG, ACE_TEXT(), TAO_Transport_Mux_Strategy::connection_closed(), TAO_ORB_Core::input_cdr_dblock_allocator(), ACE_Message_Block::length(), LM_DEBUG, TAO_ORB_Core::locking_strategy(), ACE_CDR::mb_align(), ACE_OS::memset(), TAO_UIPMC_Transport< CONNECTION_HANDLER >::messaging_object(), MIOP_MAX_DGRAM_SIZE, TAO_Pluggable_Messaging::parse_next_message(), TAO_Transport::process_parsed_messages(), ACE_Message_Block::rd_ptr(), TAO_UIPMC_Transport< CONNECTION_HANDLER >::recv(), ACE_Message_Block::space(), ssize_t, TAO_debug_level, and ACE_Message_Block::wr_ptr().
00442 { 00443 // If there are no messages then we can go ahead to read from the 00444 // handle for further reading.. 00445 00446 // The buffer on the stack which will be used to hold the input 00447 // messages 00448 char buf [MIOP_MAX_DGRAM_SIZE]; 00449 00450 #if defined (ACE_INITIALIZE_MEMORY_BEFORE_USE) 00451 (void) ACE_OS::memset (buf, 00452 '\0', 00453 sizeof buf); 00454 #endif /* ACE_INITIALIZE_MEMORY_BEFORE_USE */ 00455 00456 // Create a data block 00457 ACE_Data_Block db (sizeof (buf), 00458 ACE_Message_Block::MB_DATA, 00459 buf, 00460 this->orb_core_->input_cdr_buffer_allocator (), 00461 this->orb_core_->locking_strategy (), 00462 ACE_Message_Block::DONT_DELETE, 00463 this->orb_core_->input_cdr_dblock_allocator ()); 00464 00465 // Create a message block 00466 ACE_Message_Block message_block (&db, 00467 ACE_Message_Block::DONT_DELETE, 00468 this->orb_core_->input_cdr_msgblock_allocator ()); 00469 00470 00471 // Align the message block 00472 ACE_CDR::mb_align (&message_block); 00473 00474 00475 // Read the message into the message block that we have created on 00476 // the stack. 00477 ssize_t n = this->recv (message_block.rd_ptr (), 00478 message_block.space (), 00479 max_wait_time); 00480 00481 // If there is an error return to the reactor.. 00482 if (n <= 0) 00483 { 00484 if (TAO_debug_level) 00485 { 00486 ACE_DEBUG ((LM_DEBUG, 00487 ACE_TEXT ("TAO: (%P|%t|%N|%l) recv returned error on transport %d after fault %p\n"), 00488 this->id (), 00489 ACE_TEXT ("handle_input ()\n"))); 00490 } 00491 00492 if (n == -1) 00493 this->tms_->connection_closed (); 00494 00495 return n; 00496 } 00497 00498 // Set the write pointer in the stack buffer. 00499 message_block.wr_ptr (n); 00500 00501 // Make a node of the message block.. 00502 TAO_Queued_Data qd (&message_block); 00503 size_t mesg_length = 0; 00504 00505 // Parse the incoming message for validity. The check needs to be 00506 // performed by the messaging objects. 00507 if (this->messaging_object ()->parse_next_message (qd, mesg_length) == -1) 00508 { 00509 if (TAO_debug_level) 00510 { 00511 ACE_DEBUG ((LM_DEBUG, 00512 ACE_TEXT ("TAO: (%P|%t|%N|%l) handle_input failed on transport %d after fault\n"), 00513 this->id () )); 00514 } 00515 00516 return -1; 00517 } 00518 00519 if (message_block.length () > mesg_length) 00520 { 00521 if (TAO_debug_level) 00522 { 00523 ACE_DEBUG ((LM_DEBUG, 00524 ACE_TEXT ("TAO: (%P|%t|%N|%l) handle_input failed on transport %d after fault\n"), 00525 this->id () )); 00526 } 00527 00528 return -1; 00529 } 00530 00531 // NOTE: We are not performing any queueing nor any checking for 00532 // missing data. We are assuming that ALL the data would be got in a 00533 // single read. 00534 00535 // Process the message 00536 return this->process_parsed_messages (&qd, rh); 00537 } |
|
Initialising the messaging object.
Implements TAO_Transport. Definition at line 612 of file UIPMC_Transport.cpp. References TAO_Pluggable_Messaging::init().
00614 { 00615 this->messaging_object_->init (major, minor); 00616 return 1; 00617 } |
|
@TODO: These methods IMHO should have more meaningful names. The names seem to indicate nothing. Implements TAO_Transport. Definition at line 114 of file UIPMC_Transport.cpp. Referenced by TAO_UIPMC_Transport< CONNECTION_HANDLER >::handle_input().
00115 { 00116 return this->messaging_object_; 00117 } |
|
Read len bytes from into buf.
Implements TAO_Transport. Definition at line 336 of file UIPMC_Transport.cpp. References ACE_CDR_BYTE_ORDER, ACE_DEBUG, ACE_INET_Addr::get_host_addr(), ACE_INET_Addr::get_port_number(), LM_DEBUG, ACE_OS::memmove(), MIOP_FLAGS_OFFSET, MIOP_ID_CONTENT_OFFSET, MIOP_ID_LENGTH_OFFSET, miop_magic, MIOP_MAGIC_OFFSET, MIOP_MAX_LENGTH_ID, MIOP_MIN_HEADER_SIZE, ssize_t, ACE_CDR::swap_4(), and TAO_debug_level. Referenced by TAO_UIPMC_Transport< CONNECTION_HANDLER >::handle_input().
00339 { 00340 ACE_INET_Addr from_addr; 00341 00342 ssize_t n = this->connection_handler_->peer ().recv (buf, 00343 len, 00344 from_addr); 00345 if (TAO_debug_level > 5) 00346 { 00347 ACE_DEBUG ((LM_DEBUG, 00348 "TAO_UIPMC_Transport::recv: received %d bytes from %s:%d\n", 00349 n, 00350 from_addr.get_host_addr (), 00351 from_addr.get_port_number ())); 00352 } 00353 00354 // Make sure that we at least have a MIOP header. 00355 if (n < MIOP_MIN_HEADER_SIZE) 00356 { 00357 if (TAO_debug_level > 0) 00358 { 00359 ACE_DEBUG ((LM_DEBUG, 00360 "TAO_UIPMC_Transport::recv: packet of size %d is too small from %s:%d\n", 00361 n, 00362 from_addr.get_host_addr (), 00363 from_addr.get_port_number ())); 00364 } 00365 return 0; 00366 } 00367 00368 // Check for MIOP magic bytes. 00369 if (buf[MIOP_MAGIC_OFFSET] != miop_magic [0] || 00370 buf[MIOP_MAGIC_OFFSET + 1] != miop_magic [1] || 00371 buf[MIOP_MAGIC_OFFSET + 2] != miop_magic [2] || 00372 buf[MIOP_MAGIC_OFFSET + 3] != miop_magic [3]) 00373 { 00374 if (TAO_debug_level > 0) 00375 { 00376 ACE_DEBUG ((LM_DEBUG, 00377 "TAO_UIPMC_Transport::recv: UIPMC packet didn't contain magic bytes.\n")); 00378 } 00379 00380 return 0; 00381 } 00382 00383 // Retrieve the byte order. 00384 // 0 = Big endian 00385 // 1 = Small endian 00386 CORBA::Octet byte_order = buf[MIOP_FLAGS_OFFSET] & 0x01; 00387 00388 // Ignore the header version, other flags, packet length and number of packets. 00389 00390 // Get the length of the ID. 00391 CORBA::ULong id_length; 00392 #if !defined (ACE_DISABLE_SWAP_ON_READ) 00393 if (byte_order == ACE_CDR_BYTE_ORDER) 00394 { 00395 id_length = *reinterpret_cast<ACE_CDR::ULong*> (&buf[MIOP_ID_LENGTH_OFFSET]); 00396 } 00397 else 00398 { 00399 ACE_CDR::swap_4 (&buf[MIOP_ID_LENGTH_OFFSET], 00400 reinterpret_cast<char*> (&id_length)); 00401 } 00402 #else 00403 id_length = *reinterpret_cast<ACE_CDR::ULong*> (&buf[MIOP_ID_LENGTH_OFFSET]); 00404 #endif /* ACE_DISABLE_SWAP_ON_READ */ 00405 00406 // Make sure that the length field is legal. 00407 if (id_length > MIOP_MAX_LENGTH_ID || 00408 static_cast<ssize_t> (MIOP_ID_CONTENT_OFFSET + id_length) > n) 00409 { 00410 if (TAO_debug_level > 0) 00411 { 00412 ACE_DEBUG ((LM_DEBUG, 00413 "TAO_UIPMC_Transport::recv: Invalid ID length.\n")); 00414 } 00415 00416 return 0; 00417 } 00418 00419 // Trim off the header for now. 00420 ssize_t miop_header_size = (MIOP_ID_CONTENT_OFFSET + id_length + 7) & ~0x7; 00421 if (miop_header_size > n) 00422 { 00423 if (TAO_debug_level > 0) 00424 { 00425 ACE_DEBUG ((LM_DEBUG, 00426 "TAO_UIPMC_Transport::recv: MIOP packet not large enough for padding.\n")); 00427 } 00428 00429 return 0; 00430 } 00431 00432 n -= miop_header_size; 00433 ACE_OS::memmove (buf, buf + miop_header_size, n); 00434 00435 return n; 00436 } |
|
@TODO: These methods IMHO should have more meaningful names. The names seem to indicate nothing. Reimplemented from TAO_Transport. Definition at line 541 of file UIPMC_Transport.cpp.
00542 { 00543 // We never register register the handler with the reactor 00544 // as we never need to be informed about any incoming data, 00545 // assuming we only use one-ways. 00546 // If we would register and ICMP Messages would arrive, e.g 00547 // due to a not reachable server, we would get informed - as this 00548 // disturbs the general MIOP assumptions of not being 00549 // interested in any network failures, we ignore ICMP messages. 00550 return 0; 00551 } |
|
Write the complete Message_Block chain to the connection.
Implements TAO_Transport. Definition at line 156 of file UIPMC_Transport.cpp. References ACE_DEBUG, ACE_IOV_MAX, ACE_TEXT(), ACE_OutputCDR::current(), ACE_INET_Addr::get_host_addr(), ACE_INET_Addr::get_port_number(), MIOP_Packet::iov, MIOP_Packet::iovcnt, MIOP_Packet::length, LM_DEBUG, MIOP_HEADER_SIZE, miop_magic, MIOP_MAX_DGRAM_SIZE, MIOP_MAX_FRAGMENTS, UIPMC_Message_Block_Data_Iterator::next_block(), ACE_Message_Block::rd_ptr(), ssize_t, TAO_debug_level, TAO_ENCAP_BYTE_ORDER, ACE_Message_Block::wr_ptr(), ACE_OutputCDR::write_octet(), ACE_OutputCDR::write_octet_array(), ACE_OutputCDR::write_short(), ACE_OutputCDR::write_ulong(), and TAO_UIPMC_Transport< CONNECTION_HANDLER >::write_unique_id().
00159 { 00160 const ACE_INET_Addr &addr = this->connection_handler_->addr (); 00161 bytes_transferred = 0; 00162 00163 // Calculate the bytes to send. This value is only used for 00164 // error conditions to fake a good return. We do this for 00165 // semantic consistency with DIOP, and since errors aren't 00166 // handled correctly from send_i (our fault). If these 00167 // semantics are not desirable, the error handling problems 00168 // that need to be fixed can be found in 00169 // UIPMC_Connection_Handler::decr_refcount which will need to 00170 // deregister the connection handler from the UIPMC_Connector 00171 // cache. 00172 ssize_t bytes_to_send = 0; 00173 for (int i = 0; i < iovcnt; i++) 00174 bytes_to_send += iov[i].iov_len; 00175 00176 MIOP_Packet fragments[MIOP_MAX_FRAGMENTS]; 00177 MIOP_Packet *current_fragment; 00178 int num_fragments = 1; 00179 00180 UIPMC_Message_Block_Data_Iterator mb_iter (iov, iovcnt); 00181 00182 // Initialize the first fragment 00183 current_fragment = &fragments[0]; 00184 current_fragment->iovcnt = 1; // The MIOP Header 00185 current_fragment->length = MIOP_HEADER_SIZE; 00186 00187 // Go through all of the message blocks. 00188 while (mb_iter.next_block (MIOP_MAX_DGRAM_SIZE - current_fragment->length, 00189 current_fragment->iov[current_fragment->iovcnt])) 00190 { 00191 // Increment the length and iovcnt. 00192 current_fragment->length += current_fragment->iov[current_fragment->iovcnt].iov_len; 00193 current_fragment->iovcnt++; 00194 00195 // Check if we've filled up this fragment or if we've run out of 00196 // iov entries. 00197 if (current_fragment->length == MIOP_MAX_DGRAM_SIZE || 00198 current_fragment->iovcnt == ACE_IOV_MAX) 00199 { 00200 // Make a new fragment. 00201 num_fragments++; 00202 00203 // Check if too many fragments 00204 if (num_fragments > MIOP_MAX_FRAGMENTS) 00205 { 00206 // This is an error as we do not send more. 00207 // Silently drop the message but log an error. 00208 00209 // Pluggable_Messaging::transport_message only 00210 // cares if it gets -1 or 0 so we can return a 00211 // partial length and it will think all has gone 00212 // well. 00213 if (TAO_debug_level > 0) 00214 { 00215 ACE_DEBUG ((LM_DEBUG, 00216 ACE_TEXT ("\n\nTAO (%P|%t) - ") 00217 ACE_TEXT ("UIPMC_Transport::send ") 00218 ACE_TEXT ("Message of size %d needs too many MIOP fragments (max is %d).\n") 00219 ACE_TEXT ("You may be able to increase ACE_MAX_DGRAM_SIZE.\n"), 00220 bytes_to_send, 00221 MIOP_MAX_FRAGMENTS)); 00222 } 00223 00224 // Pretend it is o.k. See note by bytes_to_send calculation. 00225 bytes_transferred = bytes_to_send; 00226 return 1; 00227 } 00228 00229 // Otherwise, initialize another fragment. 00230 current_fragment++; 00231 current_fragment->iovcnt = 1; // The MIOP Header 00232 current_fragment->length = MIOP_HEADER_SIZE; 00233 } 00234 } 00235 00236 // Build a generic MIOP Header. 00237 00238 // Allocate space on the stack for the header (add 8 to account for 00239 // the possibility of adjusting for alignment). 00240 char header_buffer[MIOP_HEADER_SIZE + 8]; 00241 TAO_OutputCDR miop_hdr (header_buffer, MIOP_HEADER_SIZE + 8); 00242 00243 miop_hdr.write_octet_array (miop_magic, 4); // Magic 00244 miop_hdr.write_octet (0x10); // Version 00245 CORBA::Octet *flags_field = reinterpret_cast<CORBA::Octet *> (miop_hdr.current ()->wr_ptr ()); 00246 00247 // Write flags octet: 00248 // Bit Description 00249 // 0 Endian 00250 // 1 Stop message flag (Assigned later) 00251 // 2 - 7 Set to 0 00252 miop_hdr.write_octet (TAO_ENCAP_BYTE_ORDER); // Flags 00253 00254 // Packet Length 00255 // NOTE: We can save pointers and write them later without byte swapping since 00256 // in CORBA, the sender chooses the endian. 00257 CORBA::UShort *packet_length = reinterpret_cast<CORBA::UShort *> (miop_hdr.current ()->wr_ptr ()); 00258 miop_hdr.write_short (0); 00259 00260 // Packet number 00261 CORBA::ULong *packet_number = reinterpret_cast<CORBA::ULong *> (miop_hdr.current ()->wr_ptr ()); 00262 miop_hdr.write_ulong (0); 00263 00264 // Number of packets field 00265 miop_hdr.write_ulong (num_fragments); 00266 00267 // UniqueId 00268 ptrdiff_t unique_id = reinterpret_cast<ptrdiff_t> (iov); 00269 this->write_unique_id (miop_hdr, 00270 static_cast<unsigned long> (unique_id)); 00271 00272 // Send the buffers. 00273 current_fragment = &fragments[0]; 00274 while (num_fragments > 0 && 00275 current_fragment->iovcnt > 1) 00276 { 00277 // Fill in the packet length header field. 00278 *packet_length = static_cast<CORBA::UShort> (current_fragment->length); 00279 00280 // If this is the last fragment, set the stop message flag. 00281 if (num_fragments == 1) 00282 { 00283 *flags_field |= 0x02; 00284 } 00285 00286 // Setup the MIOP header in the iov list. 00287 current_fragment->iov[0].iov_base = miop_hdr.current ()->rd_ptr (); 00288 current_fragment->iov[0].iov_len = MIOP_HEADER_SIZE; 00289 00290 // Send the fragment. - Need to check for errors!! 00291 ssize_t rc = this->connection_handler_->send (current_fragment->iov, 00292 current_fragment->iovcnt, 00293 addr); 00294 00295 if (rc <= 0) 00296 { 00297 if (TAO_debug_level > 0) 00298 { 00299 ACE_DEBUG ((LM_DEBUG, 00300 ACE_TEXT ("\n\nTAO (%P|%t) - ") 00301 ACE_TEXT ("UIPMC_Transport::send") 00302 ACE_TEXT (" %p\n\n"), 00303 ACE_TEXT ("Error returned from transport:"))); 00304 } 00305 00306 // Pretend it is o.k. See note by bytes_to_send calculation. 00307 bytes_transferred = bytes_to_send; 00308 return 1; 00309 } 00310 00311 // Increment the number of bytes transferred, but don't 00312 // count the MIOP header that we added. 00313 bytes_transferred += rc - MIOP_HEADER_SIZE; 00314 00315 if (TAO_debug_level > 0) 00316 { 00317 ACE_DEBUG ((LM_DEBUG, 00318 "TAO_UIPMC_Transport::send: sent %d bytes to %s:%d\n", 00319 rc, 00320 addr.get_host_addr (), 00321 addr.get_port_number ())); 00322 } 00323 00324 // Go to the next fragment. 00325 (*packet_number)++; 00326 ++current_fragment; 00327 --num_fragments; 00328 } 00329 00330 // Return total bytes transferred. 00331 return bytes_transferred; 00332 } |
|
@TODO: These methods IMHO should have more meaningful names. The names seem to indicate nothing. Implements TAO_Transport. Definition at line 577 of file UIPMC_Transport.cpp. References ACE_DEBUG, ACE_TEXT(), ACE_OutputCDR::begin(), TAO_Pluggable_Messaging::format_message(), LM_DEBUG, TAO_Transport::send_message_shared(), ssize_t, and TAO_debug_level. Referenced by TAO_UIPMC_Transport< CONNECTION_HANDLER >::send_request().
00581 { 00582 // Format the message in the stream first 00583 if (this->messaging_object_->format_message (stream) != 0) 00584 return -1; 00585 00586 // Strictly speaking, should not need to loop here because the 00587 // socket never gets set to a nonblocking mode ... some Linux 00588 // versions seem to need it though. Leaving it costs little. 00589 00590 // This guarantees to send all data (bytes) or return an error. 00591 ssize_t n = this->send_message_shared (stub, 00592 message_semantics, 00593 stream.begin (), 00594 max_wait_time); 00595 00596 if (n == -1) 00597 { 00598 if (TAO_debug_level) 00599 ACE_DEBUG ((LM_DEBUG, 00600 ACE_TEXT ("TAO: (%P|%t|%N|%l) closing transport %d after fault %m\n"), 00601 this->id (), 00602 ACE_TEXT ("send_message ()\n"))); 00603 00604 return -1; 00605 } 00606 00607 return 1; 00608 } |
|
@TODO: These methods IMHO should have more meaningful names. The names seem to indicate nothing. Implements TAO_Transport. Definition at line 555 of file UIPMC_Transport.cpp. References TAO_UIPMC_Transport< CONNECTION_HANDLER >::send_message(), and TAO_Wait_Strategy::sending_request().
00560 { 00561 if (this->ws_->sending_request (orb_core, 00562 message_semantics) == -1) 00563 return -1; 00564 00565 if (this->send_message (stream, 00566 stub, 00567 message_semantics, 00568 max_wait_time) == -1) 00569 00570 return -1; 00571 00572 return 0; 00573 } |
|
Construct and write a unique ID to the MIOP header.
Definition at line 121 of file UIPMC_Transport.cpp. References MIOP_ID_DEFAULT_LENGTH, ACE_OutputCDR::write_octet_array(), and ACE_OutputCDR::write_ulong(). Referenced by TAO_UIPMC_Transport< CONNECTION_HANDLER >::send().
00123 { 00124 // We currently construct a unique ID for each MIOP message by 00125 // concatenating the address of the buffer to a counter. We may 00126 // also need to use a MAC address or something more unique to 00127 // fully comply with the MIOP specification. 00128 00129 static unsigned long counter = 1; // Don't worry about race conditions on counter, 00130 // since buffer addresses can't be the same if 00131 // this is being called simultaneously. 00132 00133 CORBA::Octet unique_id[MIOP_ID_DEFAULT_LENGTH]; 00134 00135 unique_id[0] = static_cast<CORBA::Octet> (unique & 0xff); 00136 unique_id[1] = static_cast<CORBA::Octet> ((unique & 0xff00) >> 8); 00137 unique_id[2] = static_cast<CORBA::Octet> ((unique & 0xff0000) >> 16); 00138 unique_id[3] = static_cast<CORBA::Octet> ((unique & 0xff000000) >> 24); 00139 00140 unique_id[4] = static_cast<CORBA::Octet> (counter & 0xff); 00141 unique_id[5] = static_cast<CORBA::Octet> ((counter & 0xff00) >> 8); 00142 unique_id[6] = static_cast<CORBA::Octet> ((counter & 0xff0000) >> 16); 00143 unique_id[7] = static_cast<CORBA::Octet> ((counter & 0xff000000) >> 24); 00144 00145 unique_id[8] = 0; 00146 unique_id[9] = 0; 00147 unique_id[10] = 0; 00148 unique_id[11] = 0; 00149 00150 miop_hdr.write_ulong (MIOP_ID_DEFAULT_LENGTH); 00151 miop_hdr.write_octet_array (unique_id, MIOP_ID_DEFAULT_LENGTH); 00152 } |
|
The connection service handler used for accessing lower layer communication protocols. Definition at line 109 of file UIPMC_Transport.h. |
|
Our messaging object.
Definition at line 112 of file UIPMC_Transport.h. |