Пример #1
0
PTCPSocketChild*
NeckoChild::AllocPTCPSocketChild()
{
  TCPSocketChild* p = new TCPSocketChild();
  p->AddIPDLReference();
  return p;
}
Пример #2
0
PTCPSocketChild*
NeckoChild::AllocPTCPSocketChild(const nsString& host,
                                 const uint16_t& port)
{
  TCPSocketChild* p = new TCPSocketChild(host, port);
  p->AddIPDLReference();
  return p;
}