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

PEthSocket::PEthSocket ( PINDEX  nReadBuffers = 8,
PINDEX  nWriteBuffers = 1,
PINDEX  size = 1514 

Create a new ethernet packet socket. Some platforms require a set of buffers to be allocated to avoid losing frequent packets.

nReadBuffers  Number of buffers used for reading.
nWriteBuffers  Number of buffers used for writing.
size  Size of each buffer.

Definition at line 1548 of file ethsock.cxx.

References TypeAll.

  : readBuffers(min(nReadBuffers, MAXIMUM_WAIT_OBJECTS)),
    writeBuffers(min(nWriteBuffers, MAXIMUM_WAIT_OBJECTS))
  driver = PWin32PacketDriver::Create();
  for (i = 0; i < nReadBuffers; i++)
    readBuffers.SetAt(i, new PWin32PacketBuffer(size));
  for (i = 0; i < nWriteBuffers; i++)
    writeBuffers.SetAt(i, new PWin32PacketBuffer(size));

  filterType = TypeAll;

Generated by  Doxygen 1.6.0   Back to index