Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PEthSocket::Connect ( const PString address  )  [virtual]

Connect a socket to an interface. The first form opens an interface by a name as returned by the EnumInterfaces() function. The second opens the interface that has the specified MAC address.

TRUE if the channel was successfully connected to the interface.
address  Name of interface to connect to.

Reimplemented from PSocket.

Definition at line 1592 of file ethsock.cxx.

References Close(), PChannel::Miscellaneous, PChannel::os_handle, and PChannel::SetErrorValues().


  if (!driver->BindInterface(newName))
    return SetErrorValues(Miscellaneous, driver->GetLastError()|PWIN32ErrorFlag);

  interfaceName = newName;
  os_handle = 1;
  return TRUE;

Generated by  Doxygen 1.6.0   Back to index