- Ptr<Socket> sock = Socket::CreateSocket (src,
- TcpSocketFactory::GetTypeId());
-
- MySocket *mysocket = new MySocket();
- mysocket->totalBytes = totalBytes;
- mysocket->remaining = totalBytes;
- mysocket->bufferedBytes = 0;
- mysocket->sentBytes = 0;
- mysocket->finished = 0;
- mysocket->action = action;
-
- transformSocketPtr(sock);
- xbt_dict_set(dict_socket,socket_key, mysocket,free);
-
- sock->Bind(InetSocketAddress(port_number));
- XBT_DEBUG("Create flow starting to %fs + %fs = %fs",start-ns3_time(), ns3_time(), start);